Forum Discussion
dexter2424
Helper I
5 years agoCumulative SamePeriodLastYear by category
Hi, I'm facing an issue in the last 3 days. I thought I can solve it, but no luck. I have a measure with LY Amount: LY Amount = CALCULATE([CY Amount],SAMEPERIODLASTYEAR(vw_Prem_ToO_ID[D...
- 5 years ago
dexter2424 , Not very clear. Have to try formula like?
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
amitchandak
Super User
5 years agodexter2424 , Not very clear. Have to try formula like?
YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
dexter2424
Helper I
5 years agoNo, I have missed this, but helped me a lot!
Thank You!