Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
shekhar_analyti
Specialist
Specialist

How to change colour in Qliksense based on a condition ?

Hi All ,

How to change the Colour of KPI in Qliksense based on following condition :

1) If    Exp1 > Exp 2  THEN Green

2) If    Exp1 < Exp 2  THEN Red

1) If    Exp1 = Exp 2  THEN Blue

Please attach sample qvf for reference .

Thanks & Regards

Shekar

24 Replies
shekhar_analyti
Specialist
Specialist
Author

Please help stalwar1

viveksingh
Creator III
Creator III

Hi Shekar,

you have to write multiple if sataements.

If(EXP1>EXP2,RGB(255,0,0),if(EXP1<EXP2,RGB(0,128,0),IF(EXP1=EXP2,(RGB(0,0,255)))))

or else you can also use RED(), GREEN(), BLUE() instead of RGB color codes.

or else you can also enable conditional colors and add limit value for that or you write your own expression in that too.KPI color.PNG

shekhar_analyti
Specialist
Specialist
Author

I had already tried , but smthing is getting messed up .. Can you please attach your sample qvf ?

Not applicable

Hi Shekhar,

Check the attachment once. Hope it helps.

shekhar_analyti
Specialist
Specialist
Author

Hi Sandhya ,

Thanks for reply . Actually I was looking for conditional coloring in KPI . I see you have done for Table Values .

Thanks

Anil_Babu_Samineni

Can you share dataset to look or may be QVF?

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
viveksingh
Creator III
Creator III

Can you post sample QVF?

shekhar_analyti
Specialist
Specialist
Author

Hi Anil ,

Please find data attached .

I want KPI in qliksense which should give me sum of sale from current date and also show that whether its up or down (by how much )

from previous day sales .

Regards

buzzy996
Master II
Master II

pfa,write ur expression accordingly ur needs.