We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 38 | |
| 33 | |
| 15 | |
| 15 |
| User | Count |
|---|---|
| 66 | |
| 63 | |
| 37 | |
| 34 | |
| 22 |