Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all,
Using PBID Oct, 2024.
How can I set the color just behind the Reference Label of the KPI Card New?
I added my DAX to background of the reference label, but that turned the entire reference label area a muted red,
I want the color to be only behind the text of the reference label.
PBIX is here
Thanks,
-w
Solved! Go to Solution.
Hi @UncleLewis
You are unable to provide the desired background to the label text only because, from the engine's perspective, the label ref is considered the entire area of the region, not just the text itself.
As a workaround, what you can do is detach the background color from the card and create a rectangle with conditional formatting settings using the DAX you created. This way, you will get a result like in the picture.
The modifications that I did to achieve :
1. Create a rectangle with your dax measure as a fill color :
2. put it on back of the card:
3. switch off the card background
4. Group
Note that the rectangle's size is not dynamic, so if the string can change in length, the rectangle should account for this in its length in advance
The pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hey @UncleLewis ,
This is not possible; the background color for the reference label is coloring the entire area of the reference label.
Regards,
Tom
Hey @UncleLewis ,
This is not possible; the background color for the reference label is coloring the entire area of the reference label.
Regards,
Tom
Hi @UncleLewis
You are unable to provide the desired background to the label text only because, from the engine's perspective, the label ref is considered the entire area of the region, not just the text itself.
As a workaround, what you can do is detach the background color from the card and create a rectangle with conditional formatting settings using the DAX you created. This way, you will get a result like in the picture.
The modifications that I did to achieve :
1. Create a rectangle with your dax measure as a fill color :
2. put it on back of the card:
3. switch off the card background
4. Group
Note that the rectangle's size is not dynamic, so if the string can change in length, the rectangle should account for this in its length in advance
The pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
75 | |
68 | |
41 | |
35 |
User | Count |
---|---|
102 | |
56 | |
52 | |
46 | |
40 |