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

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.

Reply
koorosh
Post Partisan
Post Partisan

All values

Hello Experts, Have a list that shows partners enrolled in courses, how to make a report that shows the partners enrolled all courses.

koorosh_0-1632293630282.png

 

1 ACCEPTED SOLUTION

@koorosh , In a table visual put this measure with partner

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@koorosh , Try a measure like

 

measure =
var _cnt = calculate(distinctCOUNT(Table[Course]))
return
countx(filter(summarize(Table, Table[PARTNER], "_1", calculate(distinctCOUNT(Table[Course]))), [_1] =_cnt),[Partner])

Thanks, Amit, the measure returns a value, how we can get a table that returns all partners that took all courses? Like what we did for missing courses as following dax:

 

New table =except(crossjoin(all(Table[partner]),all(Table[Course Name])), selectcolumns(Table,"partner", Table[partner], "Course Name",Table[Course Name]))

 

 

@koorosh , Please find the attached file after signature. Added new table and create two new visual table on right

@koorosh , In a table visual put this measure with partner

Could you please let me know what expression we should write that says: create a table with summarize function (including just one partner column) with filter function that checks the number of total courses equal with the number of courses a partner enrolled.

Table test =
var cnt = CALCULATE(DISTINCTCOUNT('Completed Courses'[Course Name]),ALLSELECTED())
return
FILTER(
summarize(
'Completed Courses','Completed Courses'[Partner Name],
"courses attended",DISTINCTCOUNT('Completed Courses'[Course Name])),
[courses attended] = cnt
)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.