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

Multiple Dimensions In Bar Chart, conditional coloring

Hi,

I have a bar chart with two dimension,

the second dimension contains values e.g. 8 and 9.

I have a scenario where I have  one bar for each.

Now I wish to use the same color but different transparencies:

=Red($(=if([BogusAuxDim] = 8, 125, 255)))

But this does not evaluate, what am I missing?

Best Regards

1 Solution

Accepted Solutions
jwjackso
Specialist III
Specialist III

=If([BogusAuxDim] = 8,Red(125),Red(255)

View solution in original post

6 Replies
kfoudhaily
Partner - Creator III
Partner - Creator III

i suggest:

=if([BogusAuxDim] = 8, rgb(255,0,0),rgb(255,100,100))

regards,

QlikView Qlik Sense consultant
jwjackso
Specialist III
Specialist III

=If([BogusAuxDim] = 8,Red(125),Red(255)

chrweber
Creator
Creator
Author

Hi,

unfortunately this answer does not include transparency, which is what this question is about

chrweber
Creator
Creator
Author

Interestingly, this works and it  allows the execution of my original intend:

=If([BogusAuxDim] = 8,White(125),White(255) bitand Red()

However I would still like an explanation why the other expression fails

jonathandienst
Partner - Champion III
Partner - Champion III

You almost had it, but you dont need a $ expansion:

=Red(if([BogusAuxDim] = 8, 125, 255))

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

Well, that is just my problem.

I tried that, of course but then I get default colors.

The expression fails silently