Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create a dimension "Anonymous" (Crear una dimensión "Anónima")

postit_lq.png

The other day a client asked us to one of QlikView applications wanted to anonymize the different outlets in your organization so that these, while having a complete view of company data, they were impossible to identify which belonged to results everyone.

It is a clear example of what I call "security without security" to be useful it must be combined with a number of dimensions calculated, showing in each Qlik object an astute combination of the "real" size and dimension "anonymous" . It is a way of working "manual" but can be useful in certain situations.

For greater anonymity of results generated lines of script that numbered elements of the "anonymous" dimensions in a random fashion. In this way we prevent that by his experience in business outlets descriptive identification of those anonymous, because they change each time the box is reloaded.

The code is as follows:

M_CONCE_AUX:LOAD * INLINE [
    CONCE
    A
    B
    C
]
;

M_CONCE_AUX_2:LOAD *,rand() AS RANDOM_AUXResident M_CONCE_AUX;

M_CONCE:LOAD *,
'Conc. ' &
RowNo() AS [CONCE ANONIM]Resident M_CONCE_AUX_2Order by RANDOM_AUX;
Drop table M_CONCE_AUX;Drop table M_CONCE_AUX_2;


Finally the result is a pair of dimensions that can be used where one takes different values ​​each time the box is reloaded. An example of the result is:

Captura.PNG

URL http://haciendoqlik.blogspot.com.es/2015/07/consejos-qlik-crear-una-dimension.html


Translated with Google Translate - Qlik Community Administrative Team



El otro día un cliente nos pidió que en uno de sus aplicaciones QlikView queria anonimizar los diferentes puntos de venta de su organización, para que a estos, aun teniendo una visualización completa de los datos de la compañía, les fuera imposible identificar qué resultados pertenecían a cada quien.

Es un claro ejemplo de lo que yo llamo "seguridad sin seguridad" que para ser útil  ha de ser combinado con una serie de dimensiones calculadas, que muestren en cada objeto Qlik una combinación astuta entre la dimensión "real" y la dimensión "anónima". No es una forma de trabajar "de manual" pero puede ser útil en determinadas situaciones.

Para conseguir una mayor anonimidad de los resultados generamos unas líneas de script que numeraban los elementos de las dimensiones "anónimas"  de una forma aleatoria. De esta manera impedimos que mediante su experiencia en el negocio, los puntos de venta identificasen los descriptivos anonimizados, pues estos cambian cada vez que se recarga el cuadro.

El código es el siguiente:

M_CONCE_AUX:LOAD * INLINE [
    CONCE
    A
    B
    C
]
;

M_CONCE_AUX_2:LOAD *,rand() AS RANDOM_AUXResident M_CONCE_AUX;

M_CONCE:LOAD *,
'Conc. ' &
RowNo() AS [CONCE ANONIM]Resident M_CONCE_AUX_2Order by RANDOM_AUX;
Drop table M_CONCE_AUX;Drop table M_CONCE_AUX_2;



Finalmente el resultado es un par de dimensiones que podremos utilizar, donde una de ellas toma valores diferentes cada vez que se recarga el cuadro. Un ejemplo del resultado es:


Captura.PNG


URL http://haciendoqlik.blogspot.com.es/2015/07/consejos-qlik-crear-una-dimension.html

0 Replies