Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
spividori
Specialist
Specialist

Set Analisys count Products.

Hi.

I need to count the number of products in existence when the SitioCli = SitioDep in a pivot table

I try to use the following formula but it works:

count({$<Exi=-{0}, SitioCli=SitioDep >} NombreProdu)

This is the data model and I use as SitioCli dimension.

Captura.PNG

Regards.

3 Replies
Not applicable

Hi Sandro P,

have you tried the following expression :

count({$<Exi=-{0}, SitioCli={SitioDep} >} NombreProdu)

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

     count({$<Exi=-{0}, SitioCli={"=SitioCli=SitioDep" >} NombreProdu)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
spividori
Specialist
Specialist
Author

Hi.

This works, but I changed the formula, was as follows:

count({$<Exi=-{0}, SitioDep={"=SitioCli=SitioDep"} >} NombreProdu)

But this works only when I select a SitioCli, otherwise it is zero.

Example.

Selected:

Captura.PNG

Deselected:

Captura2.PNG

and if I add another expression:

Captura3.PNG

It may make it work without having to select a SitioCli?

Regards.