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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Bananathan
Frequent Visitor

How to input start of financial year based on selected date into measure?

Hi,

 

I have a date slicer that selects the year and month (essentially gives me 30th of selected month and year)

 

My financial (fin) year runs 1st Apr - 30th Mar and I am trying to input the date '1st April of this fin year' based on the selected date in the slicer.

 

For example, if I select February 2022 in the slicer then I need 1st April 2021. 

 

I have a date table with a fin year field (21-22, 22-23, etc.) - I am trying to write DAX to give me 1st April of that fin year using this fin year field as a comparison, but can't figure out how to do this. I've tried DATE(), but I can only get this to work if the year of the selected date happens to be the same as the fin year. Of course, this isn't the case for Jan-Mar.

How can I use selecteddate to create '1st April of this financial year'?

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Bananathan 

Better to add it as a calculated colum in the date table

DATE ( YEAR ( EOMONTH ( 'Date'[Date], -5 ) + 1 ), 4, 1 )

Inside a measure you need to wrap 'Date'[Date] with SELECTEDVALUE 

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Bananathan 

Better to add it as a calculated colum in the date table

DATE ( YEAR ( EOMONTH ( 'Date'[Date], -5 ) + 1 ), 4, 1 )

Inside a measure you need to wrap 'Date'[Date] with SELECTEDVALUE 

Awww man this has been bothering the hell out of me, but your solution worked! Thank you so much

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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