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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
D_PBI
Post Patron
Post Patron

How to create a calculated column needed to hold the previous date from the data column?

Hi,
I have a date column named 'Min Date'. I would like to created a new calculated column that will hold the previous Min Date value. The below table shows my intention.

D_PBI_0-1707911177758.png


Note where the 'Min Date' value is 01/04/2023, the rows 'Previous Min Date' column holds 01/01/2023 which is the very next earlier date in the 'Min Date' column.
Note where the 'Min Date' value is 01/09/2022, the rows 'Previous Min Date' column holds 01/05/02021 which is the very next earlier date in the Min Date column.
I hope this makes sense. Please can you inform me on the DAX needed to created this 'Previous Min Date' column?
Thanks.

4 REPLIES 4
D_PBI
Post Patron
Post Patron

@Anonymous  No. Unfortunately the help above hasn't resolved my issue. However, I've moved on from this initial question and therefore no longer require this particular thread answering.

Anonymous
Not applicable

Hi @D_PBI ,

May I ask if your problem has been solved. If the above reply was helpful, you may consider marking it as solution. If the problem is not yet solved, please feel free to ask us a question.

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

D_PBI
Post Patron
Post Patron

@amitchandak - thanks for your response. I will need to come back to this and see if it completes my aim.

amitchandak
Super User
Super User

@D_PBI , try a new column like

 

Maxx(filter(Table, [Min Date] < earlier([Min date])), [Min Date])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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