Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 49 | |
| 35 | |
| 31 | |
| 30 |