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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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