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

Color the expression according the value

Dear all,

I have a straight table where I have a dimension-Store_Name

Expressions-Sales/margin/Net Sale Qty

whenever a measure will be selected the chart will represent the bottom stores based on the measures value-i-e the stores will be sorted in the ascending order.

Now my problem is that I want to color the most bottom store as the darkest color,the color will be lighter when the stores values will be increasing gradually.i-e-If the bottom stores have values 100,200,300,400,500...then 100 will be darkest red,200 will be a little bit lighter,and so on..

Please help.

2 Replies
MK9885
Master II
Master II

Anil_Babu_Samineni

Try something like this

If(Sum(Sales) = 100, LightRed(), If(Sum(Sales) = 200, ...., LightGreen()))

OR Please post sample 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