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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
felipe_oliveira
Contributor III
Contributor III

Change column color if greater than average

Hi Masters!

I am trying to change the colors of the columns that are 50% greater than average. However, it is working only for the weekly analysis.

For the monthly analysis (below) it seems the formula is not working

- Monthly analysis:

Monthly.PNG

Background Color formula:

if(if(%pickmetric = 'Volume', count($(=%metric)))>$(=avg(aggr(count($(=%metric)),Year,Month))*1.5),rgb(255,0,0),if(if(%pickmetric = 'Amount', sum($(=%metric)))>$(=avg(aggr(sum($(=%metric)),Year,Month))*1.5),rgb(255,0,0)))

- Weekly analysis:

Weekly.PNG

Background Color formula:

if(if(%pickmetric = 'Volume', count($(=%metric)))>$(=avg(aggr(count($(=%metric)),Year,Week))*1.5),rgb(255,0,0),if(if(%pickmetric = 'Amount', sum($(=%metric)))>$(=avg(aggr(sum($(=%metric)),Year,Week))*1.5),rgb(255,0,0)))

- Filters:

Filter.PNG

- Dimensions:

Year

Month


Does anyone know why it is not working for the Monthly analysis?


Thanks


Felipe

1 Solution

Accepted Solutions
Anil_Babu_Samineni

There is un necessary parenthesis closed, Could be the reason from there? Will you able to attach application

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

View solution in original post

3 Replies
MK9885
Master II
Master II

Can you provide sample app?

Anil_Babu_Samineni

There is un necessary parenthesis closed, Could be the reason from there? Will you able to attach application

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
luismadriz
Specialist
Specialist

Hi,

Which one is 50% greater than the average?