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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
PaulH1
Contributor
Contributor

Subtract dimension average from max value in table

Hello,

I'd like to write an expression within a table that subtracts the MARKET RATE in each row from the best MARKET RATE. So in the example below the maximum is Italy at 90% for ID 2 so all other values in the Difference column are subtracted from 90%.

 

Thank you.

 

PaulH1_1-1607540048737.png

 

 

Labels (2)
4 Replies
dplr-rn
Partner - Master III
Partner - Master III

i dont know what your data is like but assuming rate isnt aggregated in any way

define difference like so Max(total Rate)- Rate

blueran
Contributor II
Contributor II

or instead of total use {1} which ignores all selections

PriyankaShivhare
Creator II
Creator II

Max(Total<ID> Rate)-Rate

pradosh_thakur
Master II
Master II

If you want the max from all the ids then Max(Total RATE)-RATE

If you want for some specific dimension then Max(Total <dimesnion> RATE)-RATE for ex. Max(Total<ID> RATE)-RATE

-Pradosh

 

Learning never stops.