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: 
zieben46
Contributor II
Contributor II

Set Analysis with Measures: Multiple Nested Dimensions

Follow-up to this excellent video:

https://www.youtube.com/watch?v=wSrKGu_8EfU&ab_channel=Qlik

Sum({<[Model Variation]={"SUM(PartSales) >= 1000"}>} PartSales)

What if there were 2 dimensions, say Model Variation and Model Color, and looking for sum sales > 1000 for each model variation & model color combo?

Thanks!

Labels (1)
1 Solution

Accepted Solutions
rubenmarin
MVP
MVP

You can aggr to split a calculation in the differnt combinations of fields values,like:

Sum(Aggr(If(Sum(PartSales)>=1000, Sum(PartSales)),Model,Color))

View solution in original post

4 Replies
rubenmarin
MVP
MVP

Hi, I think this would be easier if you create a field that merges model and color, so you can use this field in set analysis.

You can create the field as Model &'_'& Color as ModelColor

zieben46
Contributor II
Contributor II
Author

Thanks, yes this works!

I'll be using this method for now, but I'm seeking a solution that is 100% front end (no creation of extra columns upon load). 

rubenmarin
MVP
MVP

You can aggr to split a calculation in the differnt combinations of fields values,like:

Sum(Aggr(If(Sum(PartSales)>=1000, Sum(PartSales)),Model,Color))

zieben46
Contributor II
Contributor II
Author

This works!  Nice & clean solution.  And my testing shows the outer SUM is not necessary. 

I was in a rabbit hole w/ set analysis (good to learn regardless).

Thank you sir!