This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi All,
Where am I going wrong to get Previous Month workday calculation. But working for Current Month calculation.
Solved! Go to Solution.
I was making it complex. I was considering all my slicers in Filter() of my code.
This simple DAX works for me.
Hi @Anonymous ,
Can you please share some sample data and the expected results? Then we will understand your requirement clearly.
Hi @Anonymous ,
Could you tell me if your problem has been solved? Welcome to share your own solution. More people will benefit from the thread.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I was making it complex. I was considering all my slicers in Filter() of my code.
This simple DAX works for me.
@Anonymous i could be wrong, think it may be how you calculate month, are you trying to go back a month, what if month 1 = 1 and going back is 12? your calculation wont get there, you need to use time intelligence to calculate this properly.
what are you getting and can you demonstrate examples of what you want. Are you able to use a date field?
Proud to be a Super User!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 38 | |
| 28 | |
| 27 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 37 | |
| 32 | |
| 26 | |
| 25 |