Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dimension Limits

Hi,

I want to limit the data shown in my straight table based on largest 5 values(expression is no. of days)

I have to show it in descending order, +ve days, then the -ve days(amount going highest to lowest).

So, after setting the dimension limit to largest 5, my table should have shown the data till the yellow line.

Capture.PNG

However, it's instead showing me something like this, basically ignoring the minus(-) sign.

How can I get it to work the way I want? Please help.

Capture.PNG

Note: The value for Days is calculated in the script .

Interval(Date#(Today(),'MM/DD/YYYY')-Date#([Field9_Pmnt date],'MM/DD/YYYY'),'DD') as Days

The purpose is basically to limit the rows on the basis of 'Days'. Since you cannot limit the rows based on a dimension, I had to add the 'Days' as an expression.

                Capture.PNG

Capture.PNG

Capture.PNG

1 Solution

Accepted Solutions
sunny_talwar

How about using first 5, instead of largest 5?

Capture.PNG

View solution in original post

5 Replies
sunny_talwar

Would you be able to share a sample to take a look at

Anonymous
Not applicable
Author

Hi Sunny,

I have attached a sample file. The chart is limited to largest 5 values. You can see how's it's ignoring the negative sign and showing the negative values as the largest.

sunny_talwar

How about using first 5, instead of largest 5?

Capture.PNG

swuehl
MVP
MVP

Here is another option, filtering your dimension using set analysis in the dimension or all expression aggregations.

Should still work when sorting the columns.

Not applicable
Author