Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi
I'm trying to display the difference between values in a table. I have searched around and viewed PREVIOUSMONTH function etc but the way my data is structured there are gaps in dates between emails being sent out - so it needs to pick up the last known send. See screengrab of what I am after (desired output column):
I have email statistics data and have created a measure to produce the unique clicks of each email. I can drop into a table and show when the email was sent, the name and the click rate using the measure. However, I need to show the change in click rate consecutively as each email goes out as and when.
Is there DAX code that will support this?
Thanks
Solved! Go to Solution.
Hi @Anonymous ,
You need create an Index column in Query Editor and create a measure with the formula below.
Measure =
VAR a =
CALCULATE (
[click_reate],
FILTER (
ALLSELECTED ( 'Table1' ),
'Table1'[Index]
= MAX ( 'Table1'[Index] ) - 1
)
)
RETURN
IF ( a = BLANK (), BLANK (), 'Table1'[click_reate] - a )
Here is the output.
Best Regards,
Cherry
Hi @Anonymous ,
Have you solved the problem?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please feel free to ask.
Best Regards,
Cherry
Hi @Anonymous ,
You need create an Index column in Query Editor and create a measure with the formula below.
Measure =
VAR a =
CALCULATE (
[click_reate],
FILTER (
ALLSELECTED ( 'Table1' ),
'Table1'[Index]
= MAX ( 'Table1'[Index] ) - 1
)
)
RETURN
IF ( a = BLANK (), BLANK (), 'Table1'[click_reate] - a )
Here is the output.
Best Regards,
Cherry
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 33 | |
| 29 | |
| 27 |
| User | Count |
|---|---|
| 133 | |
| 104 | |
| 61 | |
| 59 | |
| 55 |