Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm looking for a way to get a count of possible days for students in a school year, based on their enrollment date. Some students begin at the beginning of the school year and others will start at a later date if they moved in later for example. The trouble I'm having is the school year calendar and what days count as a possible day. There are weekends, holidays, school breaks...that do not count.
Any thoughts welcome!
Solved! Go to Solution.
You need to build an extra holiday table to record the weekends and holidays. And then build a measure using dax like pattern below:
Days enrolled =
CALCULATE (
COUNT ( Table[Date] ),
FILTER (
Table,
Table[Date] > Start_Date
&& NOT ( Table[Date] IN VALUES ( Holiday[Date] ) )
)
)
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you! This is amazing . It worked much better as a calculated column.
Thank you! This is amazing . It worked much better as a calculated column.
You need to build an extra holiday table to record the weekends and holidays. And then build a measure using dax like pattern below:
Days enrolled =
CALCULATE (
COUNT ( Table[Date] ),
FILTER (
Table,
Table[Date] > Start_Date
&& NOT ( Table[Date] IN VALUES ( Holiday[Date] ) )
)
)
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |