Forum Discussion
asfdwd
3 years agoFrequent Visitor
Fiscal YTD calculation using DATESYTD get 50% result wrong.
BillUnitsMonthly = CALCULATE(SUM(MonthlyReport[Subscript]),
ALL('Calendar'[FiscalYear]),
'Calendar'[FiscalYearNo]<=MAX('Calendar'[FiscalYearNo])
)
BillUnits FYTD = CALCULATE([BillUnitsMonthly],DATESYTD('Calendar'[Date],"31/3"))
The .pbix file can be download from the link.
https://1drv.ms/u/s!ArFNhSS94KaIgp8s2FoB6XK-ws-hrw
pls try this
BillUnitsMonthly = CALCULATE(SUM(MonthlyReport[Subscript]), REMOVEFILTERS(),VALUES('Calendar'[FiscalMonth]), 'Calendar'[FiscalYearNo]<=MAX('Calendar'[FiscalYearNo]) )
2 Replies
- Ahmedx
Super User
pls try this
BillUnitsMonthly = CALCULATE(SUM(MonthlyReport[Subscript]), REMOVEFILTERS(),VALUES('Calendar'[FiscalMonth]), 'Calendar'[FiscalYearNo]<=MAX('Calendar'[FiscalYearNo]) )- asfdwdFrequent Visitor
Not understand the logic behind it. But this code works perfectly for my report!
Thank you.