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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
ca-traveler
Regular Visitor

Need Help Converting Excel Formula to Power Query Formula

Good day all, 

 

Was wondering if someone could help me convert this formula to a power query formula? I am trying to convert the program need date to the fiscal year in the fiscal year column (please see pic below). Any help or guidance would be appreciated. Thanks in advance! 

Trent 

 

=IF((MONTH(P3)>=10),(YEAR(P3)+1),YEAR(P3))

catraveler_0-1700236139584.png

 

2 ACCEPTED SOLUTIONS
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

try this:  

 

if Date.Month([Date])>=10 then Date.Year([Date])+1 else Date.Year([Date])

 

DOLEARY85_0-1700237377967.png

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

View solution in original post

Awesome, that worked! thank you so much! 🙂 

View solution in original post

2 REPLIES 2
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

try this:  

 

if Date.Month([Date])>=10 then Date.Year([Date])+1 else Date.Year([Date])

 

DOLEARY85_0-1700237377967.png

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Awesome, that worked! thank you so much! 🙂 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.