Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Altiano
Regular Visitor

Repeats of a value in a column

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

 

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Picture1.png

 

State Count : =
COUNTROWS(Data)
 
 
 
 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
amitchandak
Super User
Super User

@Altiano , Create a new column

State name  = "State " & [state]

 

Put this on a column of Matrix and take count of state on values

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.