Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi, I have a requirement, where I need the last 30 days data based on a date column that is not from Date table.
My DAX query is :
Solved! Go to Solution.
Hi
Dates in Period should reference a full data column in your Calendar.
I guess something like this.
DATESINPERIOD ( Calender[Date], LASTDATE(Source[Resolved At]), -30, DAY )
I hope this helps.
P.s It helps If you format your DAX. Try www.daxformatter.com for tips.
Thank you for all the responses. I am able to resolve the issue.
Hi
Dates in Period should reference a full data column in your Calendar.
I guess something like this.
DATESINPERIOD ( Calender[Date], LASTDATE(Source[Resolved At]), -30, DAY )
I hope this helps.
P.s It helps If you format your DAX. Try www.daxformatter.com for tips.
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.
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 9 | |
| 8 | |
| 7 |