Forum Discussion

jbcorlikow's avatar
jbcorlikow
New Member
2 years ago
Solved

Card Conditional Formatting based on comparing Measures

I have the following comparison measure:  Compare Sunday to Baseline = VAR RecentSundayOrders = [Orders Last Sunday] VAR BaselineAvgSundayOrders = [Avg Orders Sunday] RETURN IF(     RecentSund...
  • rsbin's avatar
    2 years ago

    jbcorlikow ,

    Create a new Measure:

     

    FontColour = IF( [OrdersLastSunday] < [AvgOrdersSunday], "Red", "Green" )

     

    In the Orders Last Sunday  card visual, use the Font formatting rules and point to this new measure.

    Please refer to attached pbix file if necessary.

    Edit:  I haven't taken into account where they are equal.  You can choose red, green or an alternate colour.

    Regards,