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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi, community
I've created this DAX, For the getting dates for previous months.
But when I'm doing m1-1, I'm not getting proper values.
If I've selected Nov month then I should be getting 31st Oct 2021. But it's showing 30th Oct. Considering 30 days for each month.
Any solution for this.? Because I want the Previous month's last date that's why I did m1-1.
And "selected-max-dates = MAX(Dates)"
Solved! Go to Solution.
I think using EOMONTH() in your calculation will solve your problem.
Here's the link to the documnation to help you in this:
I think using EOMONTH() in your calculation will solve your problem.
Here's the link to the documnation to help you in this:
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 41 | |
| 27 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 127 | |
| 109 | |
| 55 | |
| 39 | |
| 33 |