Forum Discussion
ermak
6 years agoFrequent Visitor
Conditional formatting in tables
Hello! Can I configure conditional formatting so that the criterion is the previous value of the parameter? For example, in the report on positions in the search engine, I need to show whether the p...
- 6 years ago
Hi ermak
You can create a measure like below and use it for conditional formating in your matrix
_arrows = VAR _previous = CALCULATE( SUM( 'Table'[Value] ), PREVIOUSDAY( 'Table'[Date] ) ) VAR _current = SUM( 'Table'[Value] ) RETURN SWITCH( TRUE(), _previous = BLANK(), BLANK(), _previous < _current, 1, _previous = _current, 2, _previous > _current, 3 )I've attached a file with the solution as well.
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
Mariusz
6 years agoCommunity Champion
Hi ermak
You can create a measure like below and use it for conditional formating in your matrix
_arrows =
VAR _previous = CALCULATE( SUM( 'Table'[Value] ), PREVIOUSDAY( 'Table'[Date] ) )
VAR _current = SUM( 'Table'[Value] )
RETURN SWITCH(
TRUE(),
_previous = BLANK(), BLANK(),
_previous < _current, 1,
_previous = _current, 2,
_previous > _current, 3
)
I've attached a file with the solution as well.
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.

Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.