Forum Discussion
Aleph18
8 years agoFrequent Visitor
YTD - CalendarAuto - exclude future sales dates
Hi,
How can I avoid having Sales YTD figures appearing for future months?
I will like that YTD finishes in the last day of reported sales.
Date of Sales finishes in Jan, but calendarauto month continues until fiscal year end, on May. So YTD sales appear constant until May (incorrect).
For YTD Sales I used the following formula: "YTD Sales = TOTALYTD('Sales'[SalesS],DimDate[Date],all(DimDate[Date]), "5/31")"
Please advise,
I got the answer, found the answer on an older query:
3 Replies
- v-yulgu-msftMicrosoft Employee
Hi Aleph18,
One workaround is to display zero for future months.
YTD Sales = IF([SalesS]=0,0,TOTALYTD(Sales[SalesS],DimDate[Date],all(DimDate[Date]), "5/31"))
Best regards,
Yuliana Gu