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

Rank results of different calculations

Hi all,

I'm in a tricky situation and hope someone can help.

How do I rank the results of different calculations and just report the top value? All of this in the same expression if possible.

For example, I may have the following results:

sum(A) * vSVC1 = 5

sum(B) * vSVC2 = 3

sum(C) * vSVC3 = 2

sum(D) * vSVC4 = 0

In this case the expression result should be 5.

Please note the above variables can be changed by the user within an input box.

Thank you so much.

Linda

1 Solution

Accepted Solutions
Kushal_Chawda

try,

Create a chart

Dimension:

YourDimesion

Expression:

=rangemax(sum(A)*$(vSVC1),sum(B)*$(vSVC2),sum(C)*$(vSVC3),sum(D)*$(vSVC4))

View solution in original post

2 Replies
Kushal_Chawda

try,

Create a chart

Dimension:

YourDimesion

Expression:

=rangemax(sum(A)*$(vSVC1),sum(B)*$(vSVC2),sum(C)*$(vSVC3),sum(D)*$(vSVC4))

Not applicable
Author

Brilliant!

Thanks 🙂