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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
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.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Try this expression:

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


Capture.PNG

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

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