Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi everyone,
In this Employee table, column is a list of ID, columns B and C state the sickness start and end dates. I would like to write a DAX measure that counts how many months the individual took sick leave. If someone had multiple occurrences in the same month, I want to count this person only once, but if the sickness occurred in different month, I want to count this person multiple times, once for each month the sickness occurred. So for example if sickness took place in 3 different months, I want to could this person 3 times.
The result I would like to achieve is like the following but is achieved with a DAX measure. I have a Date table listing every day in 2020, the Date table is linked to the Employee table by Sickness Start Date column.
Thank you for your help
With best wishes
Maggie
Solved! Go to Solution.
@MaggieWang , refer to my blog or the file attached after signature if they can help
@amitchandak thank you. I actually had found your blog post from this community while searching for a solution to my current problem. Unfortunately this is not going to help me with my problem. At the momehnt I am not too concerned about the length of individual's sickness, your solution would help if I was. What I am looking for is to use Sickness Start Date to access how frequently (i.e. how many months) an employee took sick leave within given period, say a year. If an employee had multiple occurrences in the same month, I only want to count this person once, not each occurrence. However if the same person took sick leave in different month, I want to count this person multiple times, once for each month the sickness occurred. Thanks.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |