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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
AnkurSharma
Helper I
Helper I

How to count the occurrence of values in a column

Hi every one,

 

Need help.

In column data is like below.

Column

220/420/421

420/220

220/420

221/421/420

 

Output required in Visulizatuion(Table) is like below 

Column   Count

220          4

420          3

421          1

422          0

 

Thanks for Helping

1 ACCEPTED SOLUTION
artemus
Employee
Employee

Add a custom column with: 

Text.Split([Column], "/")

click on the expand list column button on the colunm.

Do a group by on the expanded column. Have a count aggregation (should be the default).

View solution in original post

1 REPLY 1
artemus
Employee
Employee

Add a custom column with: 

Text.Split([Column], "/")

click on the expand list column button on the colunm.

Do a group by on the expanded column. Have a count aggregation (should be the default).

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors