Forum Discussion
Help Calculating Previous Fiscal Year Sales
Your Previous year should look something like this, It seem like your calling YTSales4 Again.
PY=CALCULATE(SUM('Sales'[Total Sales Amount]),SAMEPERIODLASTYEAR('DateTable'[Calendar Date]))
Thanks Bmejia, but that doesn't work either. This gives values that are much too large because I think it's not limiting the sales data to just the date range 9/1/2021 - 4/5/2022.
- Bmejia3 years ago
Super User
How about
PY = CALCULATE(SUM(Sales[Total Sales Amount]),DATESYTD(dateadd(Datetable[Date],-1,Year),"8/31"))- THar013 years agoFrequent Visitor
That measure doesn't throw any errors, but it still doesn't provide the correct values for the fiscal YTD sales for FY22. I get the exact same values that are too low that I showed above. Having a hard time understanding why a calculation that should be relatively straightforward is proving so difficult to do in PBI. Is there some row level context I'm missing in my DAX?
- grega2 years ago
Helper II
Hi,
Was this resolved in the end?
Thanks