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.
Hello everyone. I've been banging my head against the wall trying many iterations of this. I've provided an example of the data below. Basically I'm trying to plot how many people finish a group of courses (the last day they finish a course in the selected group) vs. the date on a plot. The Class slicer can change to a users selection and is a separate table.
I thought I would do something like this but am running into issues getting the proper value and plotting it on a visual. The user can select any combination of courses in the slicer. In the below example they have selected A, B, and C - which only four people have completed. Their final completoin date would then be plotted against how many users finished on that date.
calculate(distinctcount(Table[Name],filter(Table, Courses Completed = Courses Selected && Table[Completed] = max(Table[Completed])
Without bringing in the date to a visual I can count the correct number of users that have completed all of the courses.
CoursesSelected = calculate(countrows(CourseListTable))
Current Courses Completed = calculate(distinctcount(Table[Class]))
Current People Completed = calculate(countrows(filter(values(Table[Name]),Current Courses Completed = Courses Selected)))
I appreciate any advice or links to tutorials!
Solved! Go to Solution.
@TexasStone I did it like the following. PBIX is attached below signature.
Measure =
VAR __Date = MAX('Dates'[Date])
VAR __NumCourses = COUNTROWS('CourseListTable')
VAR __Table = SUMMARIZE('Table',[Name],"__Count",COUNTROWS('Table'),"__Latest",MAX('Table'[Completed]))
VAR __Return = COUNTROWS(FILTER(__Table,[__Count]=__NumCourses && [__Latest] = __Date))
RETURN
__Return
@TexasStone I did it like the following. PBIX is attached below signature.
Measure =
VAR __Date = MAX('Dates'[Date])
VAR __NumCourses = COUNTROWS('CourseListTable')
VAR __Table = SUMMARIZE('Table',[Name],"__Count",COUNTROWS('Table'),"__Latest",MAX('Table'[Completed]))
VAR __Return = COUNTROWS(FILTER(__Table,[__Count]=__NumCourses && [__Latest] = __Date))
RETURN
__Return
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 |
---|---|
105 | |
96 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |