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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Zohaib_Awan777
Contributor
Contributor

Add two color in if conditional

How to add two colours in expression(conditional)?

if([field]>72, black(), Black(),White())

1 Solution

Accepted Solutions
Andre_Sostizzo
Digital Support
Digital Support

@Zohaib_Awan777, from looking at the picture you provided, you are probably looking for an expression that will add both colors (black and white) if < 72, and only one color if > 72. Unfortunately it does not seem like we have an expression / function for coloring with stripes. More details under https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/ColorFu...

 

If you would like to suggest this feature, you may create an Idea under the link below:

https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas

Help users find answers! Don't forget to mark a solution that worked for you! If already marked, give it a thumbs up! 🙂

View solution in original post

5 Replies
Maria_Halley
Support
Support

@Zohaib_Awan777 

Since this Question is related to app development I will move to that forum

stevejoyce
Specialist II
Specialist II

Do you want to explain in words what you are trying to do.  It's "If(<condition>, what-to-do, else-what-to-do)

If field is greater then 72 color black, else everything else is colored white would be:

if([field]>72, black(), White())

Zohaib_Awan777
Contributor
Contributor
Author

Actually, I want two colours using if conditional in expressions like black and white. I am giving the snapshot you will definitely understand what I want.

 

 

 

stevejoyce
Specialist II
Specialist II

Sorry, I have no idea what your question is.  This is the best i have to help you if([field]>72, black(), White()).  Maybe someone else can decipher your question or you'll need to be more clear with details.

Andre_Sostizzo
Digital Support
Digital Support

@Zohaib_Awan777, from looking at the picture you provided, you are probably looking for an expression that will add both colors (black and white) if < 72, and only one color if > 72. Unfortunately it does not seem like we have an expression / function for coloring with stripes. More details under https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/ColorFu...

 

If you would like to suggest this feature, you may create an Idea under the link below:

https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas

Help users find answers! Don't forget to mark a solution that worked for you! If already marked, give it a thumbs up! 🙂