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 have a Measure that calculates the Customer Lifetime Revenue [CLR]. When graphed on a line graph with a date axis, it displays the CLR filtered for just that day. I wanted to create a measure that displayed how the CLR changes over time. Obviously a single day isn't that worthwhile as all it's doing is showing the revenue per customer that day.
So, I created a new Measure:
Solved! Go to Solution.
I would recommend you install and use DAX Studio to evaluate the query plan, and to check if alternative implementations have better performance. Avoid nesting measures , use variables, try SUMX etc.
If you like more help please provide sanitized sample data that fully covers your issue.
Hi, @Chaucer ;
Is your problem solved? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Chaucer ;
May be you could try it.
measure=CALCULATE([CLR],DATESINPERIOD('Table'[Date],SELECTEDVALUE('Table'[Date]),-730,DAY))
Or
Measure =
var _se=SELECTEDVALUE('Table'[Date])
return CALCULATE([CLR]),datesbetween('Table'[Date],_se-730,_se))
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I would recommend you install and use DAX Studio to evaluate the query plan, and to check if alternative implementations have better performance. Avoid nesting measures , use variables, try SUMX etc.
If you like more help please provide sanitized sample data that fully covers your issue.
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
44 | |
41 | |
39 | |
36 |