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: 
Anonymous
Not applicable

Caluculated dimension with a function

I had the following calculated dimension in my QV application:

Screen Shot 2016-01-16 at 10.06.20.png

Now i want to replace with something like the following:

Screen Shot 2016-01-16 at 10.15.49.png

Is the above workable?

Regards

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Yes, an expression like this should work:

=If(aggr(Rank(Sum(Amount)),$(=GetCurrentField("LeadingACT3")) )<=20,$(=GetCurrentField("LeadingACT3")))

But in most charts you can use dimension limits instead which are a lot easier and will probably perform better.


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar

Yes, an expression like this should work:

=If(aggr(Rank(Sum(Amount)),$(=GetCurrentField("LeadingACT3")) )<=20,$(=GetCurrentField("LeadingACT3")))

But in most charts you can use dimension limits instead which are a lot easier and will probably perform better.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Thanks Gysbert

sunny_talwar

If the issue has been resolved, would you be able to close this thread? If it hasn't been resolved, would you be able to point out what isn't still working?