The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
79 | |
74 | |
50 | |
40 |
User | Count |
---|---|
135 | |
120 | |
75 | |
65 | |
64 |