Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
asfdwd
Frequent Visitor

Fiscal YTD calculation using DATESYTD get 50% result wrong.

Untitled.png

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

 

Untitled.png

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

pls try this

BillUnitsMonthly = CALCULATE(SUM(MonthlyReport[Subscript]),
REMOVEFILTERS(),VALUES('Calendar'[FiscalMonth]),
'Calendar'[FiscalYearNo]<=MAX('Calendar'[FiscalYearNo])
)

View solution in original post

2 REPLIES 2
Ahmedx
Super User
Super User

pls try this

BillUnitsMonthly = CALCULATE(SUM(MonthlyReport[Subscript]),
REMOVEFILTERS(),VALUES('Calendar'[FiscalMonth]),
'Calendar'[FiscalYearNo]<=MAX('Calendar'[FiscalYearNo])
)
asfdwd
Frequent Visitor

Not understand the logic behind it. But this code works perfectly for my report!

Thank you.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.