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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
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.

Top Solution Authors