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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Kornholio
Helper III
Helper III

Fiscal Year for Previous Year

I have a problem. I have a Period Date which has a Year option. It has a month, year, etc hierarchy. There is a problem when having the previous year to date. The FY is from April, Year(XX), to March Year (XX). I need to calculate from YTD for PeriodDT, if current PeriodDT is this month, or current month, for last years NET. SO, if i choose PeriodDT 2019, it will show all NET from last year up to todays month. Attached pbi.  

 

I also need to choose location, to show the FYTD NEt and Previous YTD Net

 

https://www.dropbox.com/s/shep5bn6kbvvzfd/GURU%20Test.pbix?dl=0

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

First of all, create a calendar table

https://docs.microsoft.com/en-us/dax/calendar-function-dax

 

Then try totalytd

https://docs.microsoft.com/en-us/dax/totalytd-function-dax

Use period end date in the given formula

Totalytd year = CALCULATE(TOTALYTD(sum(Sales[Sales Amount]),'Date'[Date Filer],"3/31"))

Totalytd Last year = CALCULATE(TOTALYTD(sum(Sales[Sales Amount]),dateadd('Date'[Date Filer],-1,YEAR),"3/31"))

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

First of all, create a calendar table

https://docs.microsoft.com/en-us/dax/calendar-function-dax

 

Then try totalytd

https://docs.microsoft.com/en-us/dax/totalytd-function-dax

Use period end date in the given formula

Totalytd year = CALCULATE(TOTALYTD(sum(Sales[Sales Amount]),'Date'[Date Filer],"3/31"))

Totalytd Last year = CALCULATE(TOTALYTD(sum(Sales[Sales Amount]),dateadd('Date'[Date Filer],-1,YEAR),"3/31"))

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.