I created a few stacked bar charts that show the same dimension for the bar. The colors are consistant from one graph to another. For instance, 'Basic' can be represented by blue on one chart and could be green on another. I know you can create an expression to force the colors to be consistant, but I am unable to also have a legend that shows the colors and what they represent. Can you use custom colors and have a legend? Is there a better way to force the colors to be consistant among all the charts?
Definetly stacked bar chart contains multiple expressions.
So you can go to the individual expression and click on + symbol on expression and give the background color definition to the expression (ex: RGB(255,124,234) or lightgreen()) to get the color what ever you want.
Is this approach possible when the expressions in the measures are also if statements? I have included the Dimension expression we have working and what I think the colour expression should be. But not sure if I can combine the two as this doesn't seem to work: