Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
Hi everyone,
I have a table like this
One teacher can teach at different schools and teach differnet classes.
what I'm trying to do is count teacher group by school.
I used distinctcount and the result is like this
My goal is
Because teacher 1 teaches as 3 school A,B, and C.
If anyone know how to do this, please help.
Thank you so much
Solved! Go to Solution.
@Harry_Tran , Try to create a measure
countx(summarize(Table, Table[teacher id], table[School]),[teacher id])
@Harry_Tran , Try to create a measure
countx(summarize(Table, Table[teacher id], table[School]),[teacher id])
It works, thank you so much
User | Count |
---|---|
90 | |
88 | |
86 | |
79 | |
49 |
User | Count |
---|---|
151 | |
143 | |
111 | |
74 | |
55 |