Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
elenarelinque
Creator
Creator

Excluding Filters in the expressions

Hi ,

I have a table with the material produced with defects (ST_RECHAZOS_QLIKSENSE) .

And I have a graphic whith this expression:

sum(aggr(sum({<[PHASE(Spanish: Fase)]={'422','430','440','442'},[STOP TYPE(Spanish:Tipo parada)]=,MACHINE(Spanish:CODIGO_MAQUINA)=,[ELEMENT(Spanish:Elemento asiciado)]=,[SHIFT(Spanish:TURNO)]=>}DISTINCT [QUANTITY_REJECTED(Spanish:CANTIDAD RECHAZADA)]), [ID_REJECTION(Spanish:ID RECHAZO)]))

The field "STOP TYPE (Spanish:Tipo parada)" is from other table (MAESTRO INCIDENCIAS) but is affecting to the result of this expression.

 

elenarelinque_0-1658144899426.png

With filter:

elenarelinque_2-1658145211838.png

 

Without filter:

 

elenarelinque_1-1658145190288.png

 

 

1 Solution

Accepted Solutions
jmartineze
Partner - Creator
Partner - Creator

Hola, añade en el primer sum el filtro que quieres omitir

 

sum( {<[STOP TYPE(Spanish:Tipo parada)]= >}

aggr(sum({<[PHASE(Spanish: Fase)]={'422','430','440','442'},[STOP TYPE(Spanish:Tipo parada)]=,MACHINE(Spanish:CODIGO_MAQUINA)=,[ELEMENT(Spanish:Elemento asiciado)]=,[SHIFT(Spanish:TURNO)]=>}DISTINCT [QUANTITY_REJECTED(Spanish:CANTIDAD RECHAZADA)]), [ID_REJECTION(Spanish:ID RECHAZO)]))

View solution in original post

6 Replies
jmartineze
Partner - Creator
Partner - Creator

Hola, añade en el primer sum el filtro que quieres omitir

 

sum( {<[STOP TYPE(Spanish:Tipo parada)]= >}

aggr(sum({<[PHASE(Spanish: Fase)]={'422','430','440','442'},[STOP TYPE(Spanish:Tipo parada)]=,MACHINE(Spanish:CODIGO_MAQUINA)=,[ELEMENT(Spanish:Elemento asiciado)]=,[SHIFT(Spanish:TURNO)]=>}DISTINCT [QUANTITY_REJECTED(Spanish:CANTIDAD RECHAZADA)]), [ID_REJECTION(Spanish:ID RECHAZO)]))

elenarelinque
Creator
Creator
Author

Thank you so much! But now I have another problem with the filter  "Elemento asociado". This field is from the table "MAESTRO INCIDENCIAS". 

For some values like "Acetileno" the information is disaggregated by day:

elenarelinque_0-1658148136431.png

 

and for other values it doesn't affect the information:

 

elenarelinque_1-1658148267141.png

 

 

jmartineze
Partner - Creator
Partner - Creator

Hola otra vez,

creo que es debido a que tienes una dimensión jerárquica en tus gráficos, y se da la casualidad de que para algunos valores como Acetileno solo tienes datos en un mes y automáticamente los gráficos te lo despliega en días.

Es un comportamiento correcto, depende de la necesidad que tengas tendrás que cambiar la dimensión o no.

elenarelinque
Creator
Creator
Author

Vaya es cierto ¿no puedo evitar entonces ese desglose cuando se da esa casuística?

Mil gracias por tu ayuda.

jmartineze
Partner - Creator
Partner - Creator

No, no lo puedes evitar.

Ten en cuenta que a medida que tengas más datos este comportamiento no se producirá.

Se me ocurre que podrías usar un contenedor con gráficos por meses y otros por días y mostrar uno u otro en función de si se hace alguna selección en el campo mes. Para esto tendrías que usar la función GetSelectedCount().

elenarelinque
Creator
Creator
Author

Muchísimas gracias por tu ayuda!