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.
Hi guys,
I need to write a measure to count the number of unique student IDs between the start date and the end date by month. For example: If a student starts in April and ends in May, that student need to be counted as 1 in both April and May.
I've tried several ways but none of them actually worked T.T
Really looking forward to your help!!!
Hi @Anonymous ,
Check the measure below.
Column = CALCULATE(DISTINCTCOUNT('Table'[id]),FILTER('Table',MONTH('Table'[start date])='month'[month]||MONTH('Table'[end date])='month'[month]))
Best Regards,
Jay
@Anonymous , refer if this blog can help
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |