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! Learn more

Reply
ldwf
Helper V
Helper V

Bold the values in just one column of a matrix

I want to bold the font of values in just one column of a matrix (i.e, every row in one column), but I don't see any option for doing that. Is it possible to do this? I have seen a few posts about html tags and how that might help, but I haven't seen anyone say it resolved their issue.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ldwf ,

 

Please use standard data URI prefixes instead of : html entity encoding.

vyajiewanmsft_0-1730080905516.png

And replace Blank with Not(ISBlank) to show a zero value.

 

Best regards,

Joyce

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hi @ldwf , hello Bibiano_Geraldo and lbendlin, thank you for your prompt reply!

Please create a measure with svg code as shown below:

Formatted_Cost = 
VAR FontWeight =
     "bold"
VAR txt=MAX('Table'[Cost])
RETURN
IF (
    txt <> BLANK(), 
     "data&colon;image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='20' width='70'>""<text font-family = 'Segoe UI' x='50%' y='50%' font-size='15' fill='#404040' font-weight='" & FontWeight & "' dominant-baseline = 'middle' text-anchor = 'middle'>" & txt & "</text></svg>"
)

 In additon, remember to change the data category to Image URL:

vyajiewanmsft_0-1729745857550.png

Result for your reference:

vyajiewanmsft_1-1729745905420.png

Best regards,

Joyce

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I tried your methodology, and although I don't get any syntax errors, the field is odd when I add it to the matrix.  See screenshot.  Values of 0 are blank, and non zero values show odd results

 

 Format in Bold.PNG

You need to apply the same logic, but with normal font for other values as well. Please refer the below dax. I am applying this on a dimension. Use the same logic to apply for your measurable field as well.

Measure =

VAR FontWeight ="bold"
var nf = "normal"
var txt = SELECTEDVALUE('Table'[State])

var bold = "data&colon;image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='20' width='70'>""<text font-family = 'Segoe UI' x='50%' y='50%' font-size='18' fill='#404040' font-weight='" & FontWeight & "' dominant-baseline = 'middle' text-anchor = 'middle'>" & txt & "</text></svg>"

var norm = "data&colon;image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='20' width='70'>""<text font-family = 'Segoe UI' x='50%' y='50%' font-size='17' fill='#404040' font-weight='" & nf & "' dominant-baseline = 'middle' text-anchor = 'middle'>" & txt & "</text></svg>"

return IF(SELECTEDVALUE('Table'[State])= "Total", bold, norm)
Anonymous
Not applicable

Hi @ldwf , 

 

Thank you for your feedback.

 

If possible, please upload your svg code or attach sample files without sensitive information for better troubleshooting.

Here is the SVG Code.  For security reasons, I am prevented from uploading any files.

FormattedPastDue.PNG

Anonymous
Not applicable

Hi @ldwf ,

 

Please use standard data URI prefixes instead of &colon; html entity encoding.

vyajiewanmsft_0-1730080905516.png

And replace Blank with Not(ISBlank) to show a zero value.

 

Best regards,

Joyce

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Bibiano_Geraldo
Super User
Super User

Hi,

The native matrix of power Bi dont support to bold values for only one column.

You can search alternative ways, maybe changing the font color for desired column or look for other Matrix in power bi visuals store.

lbendlin
Super User
Super User

Yes, you can do this with SVG code.  Give that a try.

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 Kudoed Authors