Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
cbaqir
Specialist II
Specialist II

Aggr Dual as Dimension

I am trying to stratify vBuildResourceCount into buckets using:

=Aggr(
If(count(vBuildResourceCount) = 0, Dual(0, 0),
If(count(vBuildResourceCount) = 1, Dual('1', 1),
If(count(vBuildResourceCount) = 2, Dual('2-3', 2),
If(count(vBuildResourceCount)< 5, Dual('4-5', 4),
If(count(vBuildResourceCount) > 5  Dual('5 or more', 5)))))),
DEFECT_ID)

Clearly Jan 2018 has some in  with Build resource count of 1, 2 o3 3 but I only see a bar for 2-3? Help! What's wrong with my Dual statement?

2-5-2018 12-22-33 PM.jpg

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Yes, something like this.

What if you use this as expression in your straight table, to compare with the results of your count expression?

View solution in original post

4 Replies
cbaqir
Specialist II
Specialist II
Author

swuehl
MVP
MVP

Try to add your YearMonth dimension to the aggr() dimensions.

cbaqir
Specialist II
Specialist II
Author

How so? This didn't work:

=Aggr(
If(count(vBuildResourceCount) = 0, Dual(0, 0),
If(count(vBuildResourceCount) = 1, Dual('1', 1),
If(count(vBuildResourceCount) = 2, Dual('2-3', 2),
If(count(vBuildResourceCount)< 5, Dual('4-5', 4),
If(count(vBuildResourceCount) > 5,  Dual('5 or more', 5)))))),
DEFECT_ID, FISCAL_MONTH_YEAR)

swuehl
MVP
MVP

Yes, something like this.

What if you use this as expression in your straight table, to compare with the results of your count expression?