Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Very good, I am trying to create a column PREVIOUS DATES which I must take out of a swing DATES, the dates have different difference of days since they are updated every 2.3 or up to 6 days apart so a -1 does not help me.
If you see the image of my felling the dates of Previous Date and Date are the same.
I'd like to know if there's a way to leave the dates like this:
Any DAX commands that can help me?
Solved! Go to Solution.
Hi @Anonymous ,
You want measure or column?
I'll provide you both formula.
Measure = CALCULATE(MAX('Table'[date]),FILTER(ALLSELECTED('Table'),'Table'[date]<SELECTEDVALUE('Table'[date])))
Column = CALCULATE(MAX('Table'[date]),FILTER('Table','Table'[date]<EARLIER('Table'[date])))
 
Best Regards,
Jay
Hi @Anonymous ,
You want measure or column?
I'll provide you both formula.
Measure = CALCULATE(MAX('Table'[date]),FILTER(ALLSELECTED('Table'),'Table'[date]<SELECTEDVALUE('Table'[date])))
Column = CALCULATE(MAX('Table'[date]),FILTER('Table','Table'[date]<EARLIER('Table'[date])))
 
Best Regards,
Jay
Columnans works perfect. Thanks a lot.
Hi @Anonymous ,
Try following steps:
2. You will have data something like this:
3. Then create the following measure and you will get expected result.
Grax, but I dealt with this and the query editor didn't recognize me from the table I created.
Thank you from all the maeras.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.