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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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