Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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:
| User | Count |
|---|---|
| 55 | |
| 37 | |
| 26 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 58 | |
| 39 | |
| 21 | |
| 21 |