Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello Community
My task is the following, I have the current month of September, I need to count the number of days of the week (Mondays, Tuesdays, Wednesdays, Thursdays, etc.)
My calculation measure for the current month is :
DaysInWeek =
CALCULATE(
COUNTROWS('Dates'),
'Dates'[Number_month] = MONTH(TODAY()))
I am interested in what will be the measure for calculating these days for the previous month
When I add -1 to MONTH(TODAY()) -1 it doesn't give me the desired result.
Help to understand how to calculate it.
Solved! Go to Solution.
I managed to write a measure that gives me my desired result. I am attaching the file for further reference
I managed to write a measure that gives me my desired result. I am attaching the file for further reference
Hello @DimaMD, I am unable to understand the issue.
I downloaded the file attachment and the dax was working correctly and giving the number of days in Month(Today()) - 1, i.e., August.
Hi, @ChiragGarg2512 This is how it works if there is no date slicer, I incorrectly indicated the essence of the calculation, my task is to show the number of days of the week when choosing the minimum and maximum date in the slicer, the measure should show the number of the past month.
I managed to write such an event, but for some reason it does not work
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |