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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
paulfink
Post Patron
Post Patron

Filter for Fiscal Year

hi guys

 

I need an IF statement that will filter the months that are in the current fiscal year.

 

our fiscal year changes mid year e.g june 1 -> may 31

 

how can i make an IF statemant that only filters dates during the current fiscal year.

 

2 REPLIES 2
amitchandak
Super User
Super User

@paulfink , You can create a new column like

 

Year Type =
var _year = if(month(today())<=5, year(today()) -1, year(today())
var _start = date(_year,6,1)
var _end =date(year+1,5,31)
Switch( True(),
[Date] >= _start && [Date] <=_end , "This FY",
"Other"
)

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

i dont need a fiscal year column - that has already been set up. how do i filter it so it shows the current fiscal year inside an IF statement so it always shows the current fiscal year.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.