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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
JB17
Frequent Visitor

Support Date Result based on Fiscal Year

Hi Everyone,

 

Can you help me create DAX for below table? I was trying to get the result yearly. So let say the support date of Product A is Jan 3, 2019, the result will be 2019 because the support date falls within the FiscalYear 2019. I will appreciate all your help!

 

JB17_0-1694775502714.png

Thanks!

 

 

 

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @JB17 ,

 

I suggest you to try code as below to create a calculated column.

Result = 
YEAR ( EOMONTH ( 'Table'[Support Date], 2 ) + 1 )

Result is as below.

vrzhoumsft_0-1695022802536.png

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @JB17 ,

 

I suggest you to try code as below to create a calculated column.

Result = 
YEAR ( EOMONTH ( 'Table'[Support Date], 2 ) + 1 )

Result is as below.

vrzhoumsft_0-1695022802536.png

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Mahesh0016
Solution Sage
Solution Sage

@JB17 I hope this helps you.

YEARS = YEAR(Table[Support Date])

Thank You.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Power BI Header Change

Power BI Header Update

Read about the exciting updates for the Power BI forum.

Top Solution Authors