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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
MaleneL
Helper I
Helper I

Last date last Year DAX

Hi All
hope you can help me, and I have probely overlooked a simpel solution.

I need to get the last date for last year into a tavel in Desktop by DAX, 

so if I have 

02-02-20223  then 31-12-2022

05-06-2023 then    31-12-2022

04-05-2022 then 31-12-2021

 

and so on any 

pls help ;O)

Malene

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @MaleneL 
Try this DAX formula in calculated column : 

Last date LY = date(YEAR('Table'[Date])-1,12,31)
Ritaf1983_0-1687167007865.png

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

View solution in original post

3 REPLIES 3
MaleneL
Helper I
Helper I

YES!! it work, I must have done something wrong, because I had tryed with that but it didn't work.

 

Thank you!

Happy to help 🙂

Ritaf1983
Super User
Super User

Hi @MaleneL 
Try this DAX formula in calculated column : 

Last date LY = date(YEAR('Table'[Date])-1,12,31)
Ritaf1983_0-1687167007865.png

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.