Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Conditional Format Based on Previous Quater Value

I am trying to conditional format based on previous Qtr value. If the cell value is greater than previous qtr value then color the current cell as "RED". Data sample is below.   Name Date Year...
  • Jihwan_Kim's avatar
    5 years ago

    Hi, Anonymous 

    Please try the below measure for the font color conditional formatting -> format by Field value.

    The table names are a bit different than yours, but I hope you can easily fix it to apply to your model.

     

     

    ConFormat Font Color =
    SWITCH (
    TRUE (),
    SUM ( Data[Hours] )
    > CALCULATE ( SUM ( Data[Hours] ), PREVIOUSQUARTER ( 'Calendar'[Date] ) )
    && NOT ISBLANK (
    CALCULATE ( SUM ( Data[Hours] ), PREVIOUSQUARTER ( 'Calendar'[Date] ) )
    ), "Red"
    )

     

     

    Hi, My name is Jihwan Kim.

     

    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

     

    Linkedin: https://www.linkedin.com/in/jihwankim1975/