Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
xoylhat2
Contributor
Contributor

Select dimension in set analysis

Hi, I have a doubt:

For example, if I have two tables (Tabla1,Tabla2) and I want a pivot table with 2 dimensions, and a value expression like that:

Captura.JPG

I want the Campo4 value where Campo2=Campo3. I can get this with aggr expression:

=Sum(Aggr(if(Campo2=Campo3,Sum(Campo4),0),Campo1,Campo2,Campo3))


But my duobt is: can I get the same result only with set analysis?


Thanks!

Labels (1)
1 Reply
sunny_talwar
MVP
MVP

I don't think this will work in set analysis... because the way the data is structured, you will have to use if statement... you can try this though

=Sum(If(Campo2=Campo3, Campo4))