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 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
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.