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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Financial Year Generate

Hi All,

 

I have one Date column, So i want create FN year lastday  calculated column by using my date column.

here, i'm sharing my example.

 

Date                        FNYear
01-01-2019     31-03-2019
02-01-2019     31-03-2019
03-01-2019     31-03-2019
04-01-2019     31-03-2019
05-01-2019     31-03-2019
06-01-2019     31-03-2019
31-03-2019     31-03-2019
01-04-2019     31-03-2020
02-04-2019     31-03-2020
03-04-2019     31-03-2020
04-04-2019     31-03-2020

 

Adv thanks

Naveen

1 ACCEPTED SOLUTION
TeigeGao
Solution Sage
Solution Sage

Hi @Anonymous ,

In your scenario, we can use the following DAX query:

FNYear =
IF (
    MONTH ( Table1[Date] ) <= 3,
    DATE ( YEAR ( Table1[Date] ), 3, 31 ),
    DATE ( YEAR ( Table1[Date] ) + 1, 3, 31 )
)

Please refer to the following result: 

PBIDesktop_yUkDU4oJG8.png

Best Regards,

Teige

View solution in original post

1 REPLY 1
TeigeGao
Solution Sage
Solution Sage

Hi @Anonymous ,

In your scenario, we can use the following DAX query:

FNYear =
IF (
    MONTH ( Table1[Date] ) <= 3,
    DATE ( YEAR ( Table1[Date] ), 3, 31 ),
    DATE ( YEAR ( Table1[Date] ) + 1, 3, 31 )
)

Please refer to the following result: 

PBIDesktop_yUkDU4oJG8.png

Best Regards,

Teige

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.