Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I would like to write DAX formula which would take a selected list of dates and provide me with the same dates but from Last year,
List of currecnt dates:
Solved! Go to Solution.
Hi @Natalia10000 ,
You can try the following DAX:
FILTER(ALL('Date'),
'Date'[Date]>=
EDATE(MIN('Date'[Date]),-12)&&'Date'[Date]<=TODAY())
Refer to :
EDATE function (DAX) - DAX | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Natalia10000 ,
You can try the following DAX:
FILTER(ALL('Date'),
'Date'[Date]>=
EDATE(MIN('Date'[Date]),-12)&&'Date'[Date]<=TODAY())
Refer to :
EDATE function (DAX) - DAX | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
consider using this function:
in the filter Argument of the calculate function
If my reply helped you solve the problem please accept it as the solution 🙂
Hi, thank you for Your response, but this one also needs continuous dates selection? I mean there should be no gaps between dates?
To be more specific the dates that I have is the random selection of days
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |