I'm trying to create a measure that counts
the number of Mondays and will update
based on the date
range slicer I have created. For example, if I select all of March with my date slicer, the measure will be 5. If I select all of March and back to February 20, it would show 6. I tried the below code and it just calculates the total number of Mondays in the entire dataset and doesn't change when I adjust the date range slicer.
CALCULATE(DISTINCTCOUNT('Table'[DATE]),WEEKDAY('Table'[DATE]) = 2),0)
Any thoughts are appreciated.