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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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