Forum Discussion
svinayagam1984
Helper I
5 years agoTotal not showing for Last week
I am trying to compare the current week vs Last week's data at the account level. This is the measure that I created to calculate the previous week's revenue. Last Week = CALCULATE ( SUM ...
- 5 years ago
svinayagam1984 try this measure
Last Week new = CALCULATE ( SUM ( Data[MRR] ), DATEADD ( 'Calendar'[Date] , -7, DAY ) )Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- 5 years ago
FrankAT
This also helped to achieve my result. Thank you!
FrankAT
Community Champion
5 years agoI think you can do it like this:
Sum of MRR = SUM(Data[MRR])
Last Week =
VAR _SUMLastWeek = CALCULATE([Sum of MRR], DATEADD('Calendar'[Date], -7, DAY))
RETURN
if( [Sum of MRR] = BLANK(), BLANK(), _SUMLastWeek )
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
- svinayagam19845 years ago
Helper I
FrankAT
This also helped to achieve my result. Thank you!