Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
Is there any way, in a calculated column or measure, to bold the text if some condition takes place.
Say, if the length of the string is lower than 10, use bold charachters?
Doesn't have to be bold, could be any other way that will make the text stand out.
Thanks.
Solved! Go to Solution.
If the string is in a measure you can do it. In my example [Month_Name] is a measure
Month_Name = SELECTEDVALUE( Dates[Month Name] )
Then I have another measure for the formatting
Month Name Format = IF ( LEN ( [Month_Name] ) <= 5, "Red" )
That gets applied to the [Month_Name] measure.
If the string is in a measure you can do it. In my example [Month_Name] is a measure
Month_Name = SELECTEDVALUE( Dates[Month Name] )
Then I have another measure for the formatting
Month Name Format = IF ( LEN ( [Month_Name] ) <= 5, "Red" )
That gets applied to the [Month_Name] measure.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |