Hi everyone,
I need to create a measure that shows the count of absences that occurred in each calendar month. For an absence to count as "occurring" either the start date of that absence or the end date of that absence can be in the month.
I have two tables:
1) Calendar table created in DAX with Date column, Month column, Year column, and YearMonth column with year and month concatenated (eg 2021.6).
2) Absences table with one row per absence (unique identifier of absence number) and start date and end date columns amongst other things.
Example:
Absence No. Start Date End Date
1 01/06/2021 05/06/2021
2 29/06/2021 03/07/2021
3 25/05/2021 12/06/2021
4 01/07/2021 02/07/2021
The measure should return a count of 3 for June 2021 from the example data, as absences 1, 2 and 3 count and each absence should only be counted once even if both start and end date are in the month.
Could anyone help with this?
Thank you,
I need to create a measure that shows the count of absences that occurred in each calendar month. For an absence to count as "occurring" either the start date of that absence or the end date of that absence can be in the month.
I have two tables:
1) Calendar table created in DAX with Date column, Month column, Year column, and YearMonth column with year and month concatenated (eg 2021.6).
2) Absences table with one row per absence (unique identifier of absence number) and start date and end date columns amongst other things.
Example:
Absence No. Start Date End Date
1 01/06/2021 05/06/2021
2 29/06/2021 03/07/2021
3 25/05/2021 12/06/2021
4 01/07/2021 02/07/2021
The measure should return a count of 3 for June 2021 from the example data, as absences 1, 2 and 3 count and each absence should only be counted once even if both start and end date are in the month.
Could anyone help with this?
Thank you,