Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I'm trying to get the previous report data to appear next to current report data but can't get it to work.
There is a filter on the page to pick a particular data point and I want to show if it has gone up or down since the last data point. I have created sequential numbers for each data point, but in some cases students may skip one of these data points. This is the DAX I have created but it keeps returning 0%, where am I going wrong?
Solved! Go to Solution.
Hi @ChubbChubb ,
A separate filter table needs to be created for the Period Sequential Number field. Then modify the formula as above, refer below:
Slicer = VALUES('Table'[Period Sequential Number])
Previous % 9-4 =
VAR CurrentDC =
SELECTEDVALUE (Slicer[Period Sequential Number])
VAR PreviousDC = CurrentDC - 1
RETURN
CALCULATE (
MAX('Table'[% 9-4]),
'Table'[Period Sequential Number] = PreviousDC
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ChubbChubb ,
A separate filter table needs to be created for the Period Sequential Number field. Then modify the formula as above, refer below:
Slicer = VALUES('Table'[Period Sequential Number])
Previous % 9-4 =
VAR CurrentDC =
SELECTEDVALUE (Slicer[Period Sequential Number])
VAR PreviousDC = CurrentDC - 1
RETURN
CALCULATE (
MAX('Table'[% 9-4]),
'Table'[Period Sequential Number] = PreviousDC
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
16 | |
15 | |
14 | |
12 | |
11 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
9 |