Forum Discussion
Anonymous
4 years agoNot applicable
ytd sales help
Hi experts, need to calculate total sales for the current year and last year based on the fiscal year (apr - mar). I have year filter in the report. I need to calculate based on the selected year. P...
- 4 years ago
Hi Anonymous ,
Try to create measures like below:
Sales FYTD = TOTALYTD( [Total Sales], Dates[Date], ALL( Dates[Date] ), "30-6" )Sales PY FYTD = CALCULATE( [Sales FYTD], SAMEPERIODLASTYEAR( Dates[Date] ) )
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
4 years agoNot applicable
amitchandak In my report, year filter only available. Abobe formula will work for date range filter, right?
V-lianl-msft
Community Support
4 years agoHi Anonymous ,
Try to create measures like below:
Sales FYTD =
TOTALYTD( [Total Sales],
Dates[Date], ALL( Dates[Date] ), "30-6"
)Sales PY FYTD =
CALCULATE( [Sales FYTD],
SAMEPERIODLASTYEAR( Dates[Date] )
)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.