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,
I am trying to display the number of weekdays for each month but the selecting filter is not working
In the screenshot below, when I select Apr, it correctly shows the April numbers, but when not selecting any month, it does not show the sum of days from Jan-Jun
The measure I am using to find the "Count Weekday" is :
Solved! Go to Solution.
Hi @Anonymous ,
You could create a measure to get the slicer status. If the result returns blank, you could make it return the sum of all months.
Measure =
VAR a =
SELECTEDVALUE ( 'Slicer'[Month] )
RETURN
IF (
ISBLANK ( a ),
SUMX ( ALLSELECTED ( 'Table'[Month] ), [Count Weekday Official] ),
[Count Weekday Official]
)
Hi @Anonymous ,
You could create a measure to get the slicer status. If the result returns blank, you could make it return the sum of all months.
Measure =
VAR a =
SELECTEDVALUE ( 'Slicer'[Month] )
RETURN
IF (
ISBLANK ( a ),
SUMX ( ALLSELECTED ( 'Table'[Month] ), [Count Weekday Official] ),
[Count Weekday Official]
)
Hi @Anonymous
In your date Table create a Column for the workdays
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
thank you, all!
but my main question is how to get the correct total number of days between jan and jun if no dates are selected in my filter
Thank you!
Sarah
@Anonymous
Change the date slicer to view it 'Between' or 'relative dates'
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Hi,
Can you try below measure to calculate count of week days?
Weekday_Check =
CALCULATE (
COUNTROWS ( 'Table' ),
FILTER ( ALL ( 'Table'[Date] ), WEEKDAY ( 'Table'[Date], 2 ) < 6 )
)
Appreciate a Kudos! 🙂
If this helps and resolves the issue, please mark it as a Solution! 🙂
Regards,
N V Durga Prasad
| User | Count |
|---|---|
| 53 | |
| 41 | |
| 31 | |
| 26 | |
| 24 |
| User | Count |
|---|---|
| 134 | |
| 111 | |
| 57 | |
| 44 | |
| 37 |