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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Portrek
Resolver III
Resolver III

Show the last day the current year

Hello everyone, I have a question.

 

I have a formula that one of the parameters is the last day of the current year and I still haven't managed to have that date updated automatically at the turn of the year.

 

Ask: How can I show though a measure the last day of the current year, in the case of that year 12/31/2021 and automatically in 01/01/2022 the measure brings me the date of 12/31/2022 ?

 

Thanks for your help !!

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

And expression like the following should do what you are asking for:


DATE( YEAR(TODAY()),12,31)

View solution in original post

2 REPLIES 2
mahoneypat
Employee
Employee

If you need it in the query editor, here is the M equivalent

 

= #date(Date.Year(DateTime.LocalNow()),12,31)

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


d_gosbell
Super User
Super User

And expression like the following should do what you are asking for:


DATE( YEAR(TODAY()),12,31)

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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