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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Highlight the max expression in chart

Gud Mrng Everyone,

Today I wanted to highlight my max value in the bar chart with a different colour.

For which I had created a bar chart.

Dimension: if(Match(System_Created,'CLA','GOL','LOI','QUO','SES','BUL')

Expression : Count(GID3)-Count(DISTINCT GID3)Chart.jpg

To highlighted Max bar, in another colour

Expression--Background Colour =If(Sum(Count(GID3)-Count(DISTINCT GID3)) = Max(Total Aggr(Sum(Count(GID3)-Count(DISTINCT GID3)),if(Match(System_Created,'CLA','GOL','LOI','QUO','SES','BUL'), RGB(245, 121,111), RGB(122,122,122)))))

Not getting the desired result, Can anyone help me Please?

Labels (1)
13 Replies
Anil_Babu_Samineni

May be this?

If((Count(GID3)-Count(DISTINCT GID3))/Count(GID3) = Max(TOTAL Aggr((Count(GID3)-Count(DISTINCT GID3))/Count(GID3),Month1)), Green())

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Thanks, Anil

passionate
Specialist
Specialist

You can even try using:

if(Rank(Count(GID3)-Count(DISTINCT GID3))=1,Green())

In Background color of your expression

Anil_Babu_Samineni

Some cases this won't work, I've tried many times this? But good idea

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful