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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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