Forum Discussion
Anonymous
5 years agoNot applicable
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...
- 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.
Anonymous
5 years agoNot applicable
Worked perfectly.. Thanks a lot..