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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Conditional formating help

I have two measures - Net Sale and Target.

Both measures are in different tables.

If the Net Sale is below Target, I want to change the font color of Net sale.

Please help

2 ACCEPTED SOLUTIONS
mauriciosotero
Resolver III
Resolver III

Hi,

 

Create a new measure for que Color comparing the nets and targets, example:

 

ColorKPI = SWITCH(TRUE();SUM('Table'[Net])-SUM('Table'[Target])<0;"#FF0000";"#008000")


Then,

Use this measure in the conditional formatting, using the option Format By Field Value

View solution in original post

Anonymous
Not applicable

Target_NS_COMP = IF( [Net Sale] > [NS_Target] , "Green", "Red" )
Based on the column, we can do the conditional formating.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Target_NS_COMP = IF( [Net Sale] > [NS_Target] , "Green", "Red" )
Based on the column, we can do the conditional formating.
mauriciosotero
Resolver III
Resolver III

Hi,

 

Create a new measure for que Color comparing the nets and targets, example:

 

ColorKPI = SWITCH(TRUE();SUM('Table'[Net])-SUM('Table'[Target])<0;"#FF0000";"#008000")


Then,

Use this measure in the conditional formatting, using the option Format By Field Value

Anonymous
Not applicable

Bro, can you please explain in detail, both measures are in different tables.

My example used two columns in the same table, but you can do with measures in different table (if they have relations) was you shown above.

 

If my post helped you, I appreciate your Kudos.

Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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