Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Gangula
Advocate II
Advocate II

Change the Color of text using DAX in a measure

Can we change the Text formatting of a measure using DAX? 

 

For example, If I have a measure like 

Hi team = " Hi Team, this is bold in black, italic in green "

I need the bold to be in bold & black and italic to be in italic & green.  I would like to use this measure in a Card visual

2 REPLIES 2
Anonymous
Not applicable

Perhaps you could piece it together as HTML and display the visual as HTML. You'll need that HTML Custom visual though.

They really should allow Text box to be displayed as HTML and to use a DAX formula or field from a data source..

 

Jon

Anonymous
Not applicable

@Gangula,

Currently, it is not possible  to change text formatting using DAX. There is a similar thread about this issue, please vote it up.

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/31560820-extend-dax-format-functi...

Regards,
Lydia

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors