Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
jglasgow
Frequent Visitor

Education: Days enrolled for school year based on start date

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!

 

 

2 ACCEPTED SOLUTIONS
v-yuta-msft
Community Support
Community Support

@jglasgow ,

 

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.

 

 

View solution in original post

jglasgow
Frequent Visitor

Thank you!  This is amazing .   It worked much better as a calculated column.

View solution in original post

2 REPLIES 2
jglasgow
Frequent Visitor

Thank you!  This is amazing .   It worked much better as a calculated column.

v-yuta-msft
Community Support
Community Support

@jglasgow ,

 

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.

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.