The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
9 | |
5 |