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: 
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