Forum Discussion
Anonymous
5 years agoNot applicable
Virtual budget
Hi community, I have run a data set with sale and budget for a while and we usually benchmark with bueget and traditional YoY compare. However, COVID-19 make last-year data an exception and ...
- 5 years ago
Anonymous , based on what I got, Try a meaure like
Switch(true(),
max(Date[year Qtr]) = "2021Q1" ,CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(eomonth(dateadd('Date'[Date],-1*(month(today)-1),month),0)))
max(Date[year Qtr]) = "2021Q2" ,CALCULATE(Averagex(values('Date'[Month year]),Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-1,QUARTER)))
)
amitchandak
Super User
5 years agoAnonymous , based on what I got, Try a meaure like
Switch(true(),
max(Date[year Qtr]) = "2021Q1" ,CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(eomonth(dateadd('Date'[Date],-1*(month(today)-1),month),0)))
max(Date[year Qtr]) = "2021Q2" ,CALCULATE(Averagex(values('Date'[Month year]),Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-1,QUARTER)))
)
Anonymous
5 years agoNot applicable
Thanks for solution, it's work.