Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi everyone
I have a question that I think should be easy but I can't solve it
I have the following table
Id Center State Person
--------- ----- --------
1 1 P1
1 1 P2
1 2 P3
1 3 P4
1 3 P5
I wanted to show for "center 1", how many times appears "state 1", "state 2", ......
that is to say
"Center Id" "State 1" "State 2" "State 3"
-----------------------------------------
1 2 1 2
How can I solve it?
Thanks in advance
User | Count |
---|---|
9 | |
8 | |
5 | |
4 | |
3 |