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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Cre8ive
New Member

Conditional Column with values for fiscal year date ranges

How do I create a conditional column with values for fiscal year date ranges "9/1/2011 to 8/31/2012"?

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

Something like this:

if Date.Month([Column1]) < 9 then Date.Year([Column1]) else Date.Year([Column1]) + 1

Please check at your side because I just rushed it.

 

It's generally considered good practice to do this sort of thing in a date table and use a relationship to link to the data.  Plenty of resources out there. 

View solution in original post

4 REPLIES 4
HotChilli
Super User
Super User

Something like this:

if Date.Month([Column1]) < 9 then Date.Year([Column1]) else Date.Year([Column1]) + 1

Please check at your side because I just rushed it.

 

It's generally considered good practice to do this sort of thing in a date table and use a relationship to link to the data.  Plenty of resources out there. 

It worked, thank you!!!  Good to know, I will look into date tables.

HotChilli
Super User
Super User

Could you provide more detail please?  Do you want to add a column in Power Query according to a date in your data already? or something else?

Yes, in Power Query, I have a Transaction Date column and want to add a column that calculates Fiscal Year based on the transaction date ranges.

 

In Excel I used the formula below, I tried to replicate it in a Conditional Column and  then tried copying it into a Custom Column, neither worked.

 

=TEXT(YEAR([@[Transaction Date]])+IF(MONTH([@[Transaction Date]])>8,1,0),0)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors