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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Financial year Dax

Hi,

 

I need the DAX formulas for my Custom Financial year.

 

I have a change in my financial year

From 2015-2020, Eg: my financial year is Dec 2015 - Nov 2016 and dax formula should have to display like FY 2016

 

From 2021 my financial year starts from Jan 2021 - Dec 2021 and dax formula should have to display like FY 2021

 

 

Thanks

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , In you date table have this- New column

FY = "FY " &  year(Endofyear([Date], "11/30")) // Refer: https://www.youtube.com/watch?v=LbstAOFD2Vo

or

FY = "FY " &  year(Endofyear([Date], "12/31"))

 

put a if condition to check year and shift between

 

Creating Financial Calendar - From Any Month (All 12 months calendar)
https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calendar-1-5-Power/ba-p/1187441

 

 

View solution in original post

harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

With all credit to @amitchandak  reply.

 

What will be FY for Dec 2020 ? Assuming it will be FY 2021.

 

FY = 
if ('Date'[Year] <= 2021,
"FY " &  year(Endofyear('Date'[Date], "11/30")),
"FY " &  year(Endofyear('Date'[Date], "12/31"))
)

 

Please find solution attached.

 

View solution in original post

2 REPLIES 2
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

With all credit to @amitchandak  reply.

 

What will be FY for Dec 2020 ? Assuming it will be FY 2021.

 

FY = 
if ('Date'[Year] <= 2021,
"FY " &  year(Endofyear('Date'[Date], "11/30")),
"FY " &  year(Endofyear('Date'[Date], "12/31"))
)

 

Please find solution attached.

 

amitchandak
Super User
Super User

@Anonymous , In you date table have this- New column

FY = "FY " &  year(Endofyear([Date], "11/30")) // Refer: https://www.youtube.com/watch?v=LbstAOFD2Vo

or

FY = "FY " &  year(Endofyear([Date], "12/31"))

 

put a if condition to check year and shift between

 

Creating Financial Calendar - From Any Month (All 12 months calendar)
https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calendar-1-5-Power/ba-p/1187441

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors