Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
113 | |
71 | |
65 | |
46 |