Forum Discussion
Fiscal Year for Previous Year
- 7 years ago
First of all, create a calendar table
https://docs.microsoft.com/en-us/dax/calendar-function-dax
Then try totalytd
https://docs.microsoft.com/en-us/dax/totalytd-function-dax
Use period end date in the given formula
Totalytd year = CALCULATE(TOTALYTD(sum(Sales[Sales Amount]),'Date'[Date Filer],"3/31")) Totalytd Last year = CALCULATE(TOTALYTD(sum(Sales[Sales Amount]),dateadd('Date'[Date Filer],-1,YEAR),"3/31"))Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.
First of all, create a calendar table
https://docs.microsoft.com/en-us/dax/calendar-function-dax
Then try totalytd
https://docs.microsoft.com/en-us/dax/totalytd-function-dax
Use period end date in the given formula
Totalytd year = CALCULATE(TOTALYTD(sum(Sales[Sales Amount]),'Date'[Date Filer],"3/31"))
Totalytd Last year = CALCULATE(TOTALYTD(sum(Sales[Sales Amount]),dateadd('Date'[Date Filer],-1,YEAR),"3/31"))Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.