Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
shekhar_analyti
Specialist
Specialist

Is there any specific way to get color shading in qlikview ?

Hi All ,

In excel using conditional we can get color shading from light faint to deep based on values of a field  .Example : Sales

Can this be achieved in Qlikview ? And how ?

COLOUR SHADING 2.PNG

Thanks

Shekar

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Or may be like:

background color : RGB(255-RowNo()*10,100-RowNo()*1, 150-RowNo()*1)

Capture.PNG

You can play with different color combinations similarly. RowNo() would give you the color shading.

View solution in original post

8 Replies
Anil_Babu_Samineni

You may try this?

Capture.PNG

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
jonathandienst
Partner - Champion III
Partner - Champion III

You need to graduate the background colours for the expressions. The ColorMix functions will return a graduated colour based on an expression value and limit colours. The easiest way is to use the ColorMix Wizard on the Expression editor menu which will help you create a ColorMix function step by step.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
shekhar_analyti
Specialist
Specialist
Author

Hi Anil ,

Thanks for reply . I see that i already have same setting in color area .
I am attaching sample qvw . Can you please help me in replicating similar color shading for the pie chart in there .

Regards

Shekar

jonathandienst
Partner - Champion III
Partner - Champion III

Put simply:

=ColorMix1(expr, Red(), Green())

Expr returns a value from 0 to 1. Red() is the colour at 0, Green the colour at 1

=ColorMix2(expr, Red(), Yellow(), Green)

Expr returns a value from -1 to 1. Redis for -1, Yellow for 0 and Green for 1.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
shekhar_analyti
Specialist
Specialist
Author

Please find attached qvw

shekhar_analyti
Specialist
Specialist
Author

Thanks for the reply .

Please replicate same in pie chart attached

tresesco
MVP
MVP

Or may be like:

background color : RGB(255-RowNo()*10,100-RowNo()*1, 150-RowNo()*1)

Capture.PNG

You can play with different color combinations similarly. RowNo() would give you the color shading.

shekhar_analyti
Specialist
Specialist
Author

Any better way  stalwar1 , can you also suggest something on this?