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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Part of text to be bold using DAX

Hi,

 

  I want to make my part of text bold like the headers of each points. And this text is dynamic so can't use Text Box.

 

  Any help would be appreciated.

 

Thanks,

Sud

4 REPLIES 4
v-Sacoc
Microsoft Employee
Microsoft Employee

For those that found this question through Google/Bing, 
I personally found a workaround by adding the `HTML5 Custom Visual` and creating a measure with HTML syntax.

OKR1_SmartNarrative = 

"<span style='color:blue;font-weight: bold'>"
& FORMAT([AppliedViaLinkedIn_%OfTotal], "Percent")  
& "</span>"
& " of applicants applied via LinkedIn between "
& FIRSTDATE('Date'[Date])
& " and "
& LASTDATE('Date'[Date])
& " (" & COUNTROWS('Date') & " days)"
& " for " 
& "<span style='color:red'>"
& Count(ApplicantsFact[Applicant]) 
& "</span>"
& " applicants."

 

 

vSacoc_0-1645216312726.png

 

I'm not used to HTML. I've just written out the DAX for a column like this, which has lots of fields presented as text. Is it as simple as adding the style stuff that you've done into my calculated column written in DAX?

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi Sud,

 

Maybe you can put several Textbox and a Card visual together. Then you can have the format and dynamic text.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ValentinBIA
Resolver I
Resolver I

Hi @Anonymous,

 

It is currently not possible to change text formatting using DAX..

There is a thread about this issue, please vote it up : https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/31560820-extend-dax-format-function-simple-but-huge-bene

 

Best,

 

Valentin

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.