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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
paulfink
Post Patron
Post Patron

Fiscal Year Same month last year to Same month this year

Hi guys,

 

I was wondering how i would make a custom Fiscal Year Same month last year to Same month this year.

 

I use this formula to go from June last year to May this year but i want it to go from June to June

 

FY = IF('Calendar Table'[Date].[MonthNo]>5, 'Calendar Table'[Year] & " / " & 'Calendar Table'[Year]+1, 'Calendar Table'[Date].[Year]-1 & " / " & 'Calendar Table'[Date].[Year])

 

 

How can i do it so that it goes from June LY to June TY?

 

I want this column to show YYYY / YYYY and also my date column to have dates between June to June.

 

E.g for this year - it would be 2021 / 2022 and show 01/06/2021 to 31/06/2022

3 REPLIES 3
Anonymous
Not applicable

Hi @paulfink ,

 

That would be 13 months for a year, are you sure about that?

 

Best Regards,

Jay

amitchandak
Super User
Super User

@paulfink ,I did not get what you mean by june to june.

Based now what I got

 

year behind measure should work irrespective of the year start as long as they start and end on standard months

Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))

 

Ytd it matter example

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"5/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"5/31"))

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

hi @amitchandak sorry if there was a misunderstand.

 

This has nothing to do with calculating sales.

this is a general column in my calendar table just show what FY we are currently in.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 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.