Forum Discussion
Total 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.
This works fine gives the result I wanted, But I am not getting the Total.
Can someone please help me to resolve this?
My Sample file is here:
https://drive.google.com/file/d/1a_esocOUDQFICiCoOuDHStKW74J0te_x/view?usp=sharing
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.⚡
FrankAT
This also helped to achieve my result. Thank you!
3 Replies
- parry2k
Super User
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.⚡
- FrankAT
Community Champion
I 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)- svinayagam1984
Helper I
FrankAT
This also helped to achieve my result. Thank you!