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

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.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.