Forum Discussion
Ian_Stuart_Rupe
Advocate III
2 years agoConditionally format text in legend
I want the text of the element to be the same as the marker in the legend so that"Africa" on the below scatterplot would be blue. Now there is conditional formatting available for this but I cannot get it to work. I have created a measure as shown below which I am using to set the colour. This measure works for every other element that I have conditionally formatted.
Region Colour =
VAR SelectedRegion = SELECTEDVALUE(Dim_Country[Region Name])
VAR RegionColour = SWITCH(SelectedRegion,
"Africa", "#25CBD3",
"Americas","#A66999",
"Asia","#EE3A6B",
"Europe","#959DA2",
"Oceania","#FF9E00"
)
RETURN
RegionColour
Any ideas?
1 Reply
- lbendlin
Super User
Not only can you only have a single color for the entire legend
to add insult to injury you cannot even color your bubbles dynamically.
If this is important to you please consider voting for an existing idea or raising a new one at https://ideas.fabric.microsoft.com/?forum=2d80fd4a-16cb-4189-896b-e0dac5e08b41