Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
iliaisyah
Contributor III
Contributor III

Mix of colour in Block Chart

 

hi all,

im trying to change the background colour according to this range :

if(SPH >= 130, RGB(128,170,255),
if(SPH >= 100 and SPH <= 129, RGB(128,255,170),
if(SPH <= 99, RGB(255,128,149))))
 
but the half of the data here is correct, the other half of data I have a mix of color again
I'm not sure what is the problem here
 
1111.png
3 Replies
Anil_Babu_Samineni

Try this?

If(SPB>=0 and SPB<=99, RGB(255,128,149), If(SPB>=100 and SPH<=129, RGB(128,255,170), If(SPH>=130, RGB(128,170,255))))

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
iliaisyah
Contributor III
Contributor III
Author

i try as follow

 

if(SPH >=0 and SPH <= 99, RGB(255,128,149),

if(SPH >= 100 and SPH <= 129, RGB(128,255,170),

if(SPH >= 130, RGB(128,170,255))))

 

still not change

Anil_Babu_Samineni

Can you convert that into table and see, What is returning and test the values where it fails?

 

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