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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
dret
New Member

Formatting specific parts of a DAX

Hi there,

 

I'm looking for a way to format a Card to show the number highlighted in red below (974) in a different color than the rest of the text. What I'd like is for the 1 finding off non-compliance for every ... items examined to be a lighter grey so the number pops.

 

Not sure how I can achieve this, and would love some help 🙂

 

 

Text Value for Error Per = 
"1 finding of non-compliance for every" &" "& CALCULATE(SUM('CalcTable'[Value]), 'CalcTable'[Category] IN { "Total Per" }) &" "& "items examined"

 

dret_0-1648527370797.png

 

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @dret ,

 

As a workaround, you could create three cards and then group them.

vstephenmsft_0-1648799314048.png

vstephenmsft_1-1648799330215.png

 

 

Reference: Use grouping in Power BI Desktop - Power BI | Microsoft Docs 

 

Best Regards,

Stephen Tao

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @dret ,

 

As a workaround, you could create three cards and then group them.

vstephenmsft_0-1648799314048.png

vstephenmsft_1-1648799330215.png

 

 

Reference: Use grouping in Power BI Desktop - Power BI | Microsoft Docs 

 

Best Regards,

Stephen Tao

 

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

amitchandak
Super User
Super User

@dret , Based on what I got you can use the format

Text Value for Error Per = 
"1 finding of non-compliance for every" &" "& format( CALCULATE(SUM('CalcTable'[Value]) , 'CalcTable'[Category] IN { "Total Per" }), "#,###") &" "& "items examined"
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi there,

 

Thanks for your help, I'm a little confused, what exactly is going in the #,### should it be a Hex? I tried that and it wasn't working, just returning this 

dret_0-1648566104642.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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