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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
laura_1
Partner - Contributor III
Partner - Contributor III

Dimension Limitations - Alternative Dimensions

Hi,  

I have a chart with multiple alternative dimensions which I'd like to limit based on a specific calculation which is not the chart measure calculation. At the moment, the only way I could think of limiting it is with nested if statements like so:

If(GetObjectField(1)='Dim1', 

then sum({<Dim1={="Rank(calculation)<10"}>}), 

If(GetObjectField(1)='Dim2', 

then sum({<Dim2={="Rank(calculation)<10"}>}), 

If(GetObjectField(1)='Dim3', 

then sum({<Dim3={="Rank(calculation)<10"}>})

etc.

Is there a way to limit alternative dimensions without all these nested IF statements? 

 

Thanks in advance!

 

 

 

 

1 Solution

Accepted Solutions
sunny_talwar

How about just this

Sum({<[$(=GetObjectField(1))] = {"=Rank(calculation) < 10"}>} Measure)

View solution in original post

2 Replies
sunny_talwar

How about just this

Sum({<[$(=GetObjectField(1))] = {"=Rank(calculation) < 10"}>} Measure)
laura_1
Partner - Contributor III
Partner - Contributor III
Author

It worked, thanks so much Sunny!