March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello All,
I wanted to create a column in the Power query to show previous dates from the existing column. Please refer to the expected results table:
Date | Previous Day-Date | |
23/01/2023 | 22/01/2023 | |
22/01/2023 | 21/01/2023 | |
01/12/2022 | 30/11/2022 |
In the above example: The Date is the column I have and the Previous Day-Date is the column that I want to show.
Please help resolve this problem.
Thank you.
Solved! Go to Solution.
Hi @MintuBaruah ,
Please try this out
Date.AddDays([Order Date],-1)
Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
Proud to be a Super User!
Hi @MintuBaruah .
You can simply use PREVIOUSDAY() function.
Please follow this link :-https://powerbidocs.com/2020/09/13/dax-previousday-function/#:~:text=Step%2D1%3A%20Create%20a%20meas....
Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
Proud to be a Super User!
Thank you for your reply.
I have to create the Previous Day-Date column in Power query so that I can create a unique ID column.
Please provide solution for the same for Power query.
Hi @MintuBaruah ,
Please try this out
Date.AddDays([Order Date],-1)
Thanks ,
Pratyasha Samal
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |