Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am struggling with what I thought would be a reasonably simple task for . I have a basic table which holds details of risks. Each time the risk is updated the table is updated. I need to be able to see whether the risk rating is higher or lower than the previous entry
Here is a representation of my table
Title | Created | CurRating |
TestRisk1 | 03/03/23 | 12 |
TestRisk1 | 03/04/23 | 12 |
TestRisk1 | 21/04/23 | 15 |
TestRisk2 | 03/03/23 | 6 |
TestRisk2 | 19/03/23 | 12 |
TestRisk2 | 04/05/23 | 4 |
Solved! Go to Solution.
Hi @AJw1234 ,
You can create a measure as below to get it:
Difference =
VAR _seltitle =
SELECTEDVALUE ( 'Table'[Title] )
VAR _seldate =
SELECTEDVALUE ( 'Table'[Created] )
VAR _predate =
CALCULATE (
MAX ( 'Table'[Created] ),
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Created] < _seldate )
)
VAR _prerating =
CALCULATE (
SUM ( 'Table'[CurRating] ),
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Created] = _predate )
)
RETURN
IF ( ISBLANK ( _prerating ), BLANK (), SUM ( 'Table'[CurRating] ) - _prerating )
Best Regards
k you so much this is just what I wanted
Hi @AJw1234 ,
You can create a measure as below to get it:
Difference =
VAR _seltitle =
SELECTEDVALUE ( 'Table'[Title] )
VAR _seldate =
SELECTEDVALUE ( 'Table'[Created] )
VAR _predate =
CALCULATE (
MAX ( 'Table'[Created] ),
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Created] < _seldate )
)
VAR _prerating =
CALCULATE (
SUM ( 'Table'[CurRating] ),
FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Created] = _predate )
)
RETURN
IF ( ISBLANK ( _prerating ), BLANK (), SUM ( 'Table'[CurRating] ) - _prerating )
Best Regards
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
7 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |