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

max function in sheet

Hi,

I want to change the background color of the cell with the largest OVER RATIO value in the table below.

PARK_JY_0-1664326445404.png

so, I  wrote something like this

IF(COUNT("OVER COUNT")/Count("TOTAL COUNT")=(MAX(COUNT("OVER COUNT")/COUNT("TOTAL COUNT"))), 'RED')

BUT an error occurs.

Please let me know how to solve it.

Labels (1)
3 Replies
MayilVahanan

Hi Park,

You can't use two aggregation function without aggr fn.

Try like below

IF(COUNT("OVER COUNT")/Count("TOTAL COUNT")=(MAX(Total Aggr(COUNT("OVER COUNT")/COUNT("TOTAL COUNT") ,urdimension))), 'RED')

or, store into variable and reuse where required.

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
PARK_JY
Contributor III
Contributor III
Author

Hi MayilVahanan,

You have hepled me this time and before. Thank you.

I wrote the sentence you gave me.

No error occurred, but the background color did not change.

I'm sorry, but one more advice and what does 'urdimension' mean?

MayilVahanan

Hi

urdimension means, dimension used in the chart

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.