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

Color top 5 in a straight table with 2 dimensions

Dear all,

I want to create a straight table with all observations. The first 5 observations should be coloured based on 5 highest values.

this is the screenshot:

When I have defined only one dimension in the table, then everything works fine.

However, not for two dimensions.

In addition, the table is not correctly sorted.

Do you see any solution?

Thanks and best regards,

Cornelis.

1 Solution

Accepted Solutions
sunny_talwar

Try this expression:

=IF(RANK(TOTAL sum(value)) < 6, yellow())


Capture.PNG

View solution in original post

2 Replies
sunny_talwar

Try this expression:

=IF(RANK(TOTAL sum(value)) < 6, yellow())


Capture.PNG

Not applicable
Author

Dear Sunny,

Yes, that is the solution.

it is a good learning point. TOTAL is important to rank, not SUM only.

Excellent!

Best regards,

Cornelis