Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 position has improved, deteriorated or remained unchanged.
On the screen I showed how it should look about.
Thanks!
Solved! Go to Solution.
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.
The first thing that comes to my mind is to write a calculated column to indicate the previous status and then use that column to drive the conditional formatting using a logical less-than, greater-than, or equal-to.
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.
Hello, @Mariusz !
Thank you very much, but it only works if the dates are in order, for example 01.02.2020, 02.02.2020, 03.02.2020, etc. But it doesn't work if the dates are spaced, for example, 01.02.2020, 13.02.2020, 28.02.2020.
Is there any way to fix this?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |