Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I'm trying to count the number of public holidays for a country within a table visual, but cant seem to get it working, its just counting all the public holidays.
I have attached an example file. Public Holidays within Period.
Thanks in advance.
Solved! Go to Solution.
I have made a DAX measure and I recommend it to do this type of calculation.
Public Holidays =
var _minDate = SELECTEDVALUE('Time to Fill'[Position Open Date])
var _maxDate = SELECTEDVALUE('Time to Fill'[Vacant Position Filled With Today If Still Vacant])
return
CALCULATE(COUNTROWS('Public Holidays'),DATESBETWEEN('Public Holidays'[Holiday Date],_minDate, _maxDate))
I hope that this can help you.
I have made a DAX measure and I recommend it to do this type of calculation.
Public Holidays =
var _minDate = SELECTEDVALUE('Time to Fill'[Position Open Date])
var _maxDate = SELECTEDVALUE('Time to Fill'[Vacant Position Filled With Today If Still Vacant])
return
CALCULATE(COUNTROWS('Public Holidays'),DATESBETWEEN('Public Holidays'[Holiday Date],_minDate, _maxDate))
I hope that this can help you.
That worked great. I was trying "SelectedValue", but wasnt using "DatesBetween" 🙂. Anyway, thanks
Is anyone able to assist or advise.
User | Count |
---|---|
93 | |
84 | |
78 | |
75 | |
66 |
User | Count |
---|---|
115 | |
105 | |
93 | |
65 | |
60 |