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
Euro0681
Helper II
Helper II

Precious Fiscal Year (Without Specifying Filter)

I'm trying to calculate the SUM(Sales) for the previous fiscal year without using a filter to specify the starting point 
for reference here's my measure

Measure = Calculate(SUM('Table1'[Sales]) , YEAR('Table2'[Date]) = YEAR(Today()) - 1)

This measure works but the problem is it returns only the year and not fiscal year so when it does the subtraction from 'TODAY()'
our current year is '2022' but in Fiscal Years it's '2023' so therefore it doesnt actually return the value im expecting. 

If you could please suggest a way to do this without having to use filters as it has to be 'Hardcoded' but change dynamically as we move forwards in dates.

1 REPLY 1
tamerj1
Super User
Super User

Hi @Euro0681 

You can just subtract the number of days difference between the calendar year and the fiscal year from both 'Table2'[Date] and TODAY  ( )

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.