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

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

Reply
lucacebraak
Regular Visitor

Can not use measure by formatting background

Hi everyone, 

 

I would like to use the formatting tool for the background of my table. But it seems that I can not use the measure for this. 

my measure: 

lucacebraak_0-1637919896337.png

lucacebraak_1-1637919943767.png

I can not select 'Difference_DD_ALL2',  why? 

lucacebraak_2-1637920024333.png

 

Can someone help me out? 

thanks in advance. 

 

Kind regards, 

Luca 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @lucacebraak ,

Why can't you select the measureDifference_DD_ALL2 ? That's because the return value is a Text type (it uses the FORMAT function). You can base the formatting on the current field, or on any field in your model that has numerical or color data.

yingyinr_0-1638253151331.png

You can refer the following links to use conditional formatting for table/matrix visuals.

Use conditional formatting in tables

Power BI Conditional Formatting for Matrix and Table Visuals

yingyinr_1-1638255708008.png

Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @lucacebraak ,

Why can't you select the measureDifference_DD_ALL2 ? That's because the return value is a Text type (it uses the FORMAT function). You can base the formatting on the current field, or on any field in your model that has numerical or color data.

yingyinr_0-1638253151331.png

You can refer the following links to use conditional formatting for table/matrix visuals.

Use conditional formatting in tables

Power BI Conditional Formatting for Matrix and Table Visuals

yingyinr_1-1638255708008.png

Best Regards

amitchandak
Super User
Super User

@lucacebraak , If you using field value then measure should return text - color

 

example 

 

Color Category = SWITCH(Max('Item'[Category]) ,
"Category 1" , "Blue",
"Category 2" , "Green",
"Category 3" , "Gray",
"Category 4" , "Yellow",
"Category 5" , "Silver"
)

 

Color Date = if(FIRSTNONBLANK('Date'[Date],TODAY()) <today(),"lightgreen","red")

 

 

In case rule base , measure should be number. Format might be making is as text 

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

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors