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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

Top Solution Authors