cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WJ876400
Helper III
Helper III

color Formatting

 

Hi

 

I have two columns on a table, like below. I want to color the column hours completed so that if the hours are the same or higher then target hours it is green and if it is below the target hours its is red. Is this possible to do,

 

Thanks for your help

 

 

 

Capture.PNG

 

 

 

 

2 ACCEPTED SOLUTIONS
TeigeGao
Solution Sage
Solution Sage

HI @WJ876400 ,

In your scenario, we can create a measure to judge the situation like below: 

Measure =
IF ( MIN ( 'Table'[Target Sales] ) > MIN ( 'Table'[Sales Completed] ), 1, 0 )

Then in the Conditional Formatting, we can set the rule for the Sales Completed column:
PBIDesktop_j6DiXdwHld.png

Then click the Advanced controls, set the rule:

2RmOoDfUKG.png

The result will like below:

PBIDesktop_GIZxLD5rJ2.png

Best Regards,

Teige

View solution in original post

Hi @WJ876400 ,

I make a measure on the same table.

Best Regards,

Tiege

View solution in original post

4 REPLIES 4
TeigeGao
Solution Sage
Solution Sage

HI @WJ876400 ,

In your scenario, we can create a measure to judge the situation like below: 

Measure =
IF ( MIN ( 'Table'[Target Sales] ) > MIN ( 'Table'[Sales Completed] ), 1, 0 )

Then in the Conditional Formatting, we can set the rule for the Sales Completed column:
PBIDesktop_j6DiXdwHld.png

Then click the Advanced controls, set the rule:

2RmOoDfUKG.png

The result will like below:

PBIDesktop_GIZxLD5rJ2.png

Best Regards,

Teige

Hi Teige

 

Do you create the measure on a different field or create a new measure on the tbale?

 

I created a new measure on the table and then put it un the values area but it made my table go blank. Could you just run through the steps before creating the measure then where to add it into a table for it to work.

 

thanks

Hi @WJ876400 ,

I make a measure on the same table.

Best Regards,

Tiege

parry2k
Super User
Super User

@WJ876400 you can create a measure for a color and then use that in conditional formatting using by field value






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors