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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
chris886
Frequent Visitor

Help splitting column and counting events

I'm hoping this is easy, I just can't seem to figure it out.

 

My data source often has multiple entries allowed for a field, which it exports in one column delimited by a semi colon.  These are all text entries and I just need to count them.  I know how to split a column by delimiter, but don't know what to do from here.

 

If it's a list of names for example, I still want to know how many rows a certain name shows up.  How can I transform the data so my report still counts these names accurately, without effecting all of the other data columns?

 

Thanks in advance!

1 ACCEPTED SOLUTION

Hi , @chris886 

You can try to create a seperate table for these entries(duplicate original table ->remove other columns->split the column by delimiter->pivot columns). 

5.png

 

Then after  building a  one-to-many relationship with the 'Fact table', you can accurately count these entries based on this new table without affecting all  data columns in the original fact table.

4.png

 

Please check my sample file for more details.

 

Best Regards,
Community Support Team _ Eason

View solution in original post

5 REPLIES 5
chris886
Frequent Visitor

Essentially I want to be able to count the 'Name(s)' column, and how many times each name shows up there, without screwing up counts of any other column.

 

PBI.png

Hi , @chris886 

You can try to create a seperate table for these entries(duplicate original table ->remove other columns->split the column by delimiter->pivot columns). 

5.png

 

Then after  building a  one-to-many relationship with the 'Fact table', you can accurately count these entries based on this new table without affecting all  data columns in the original fact table.

4.png

 

Please check my sample file for more details.

 

Best Regards,
Community Support Team _ Eason

richbenmintz
Solution Sage
Solution Sage

are you looking to split the column values into rows?



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


I'm trying to figure out a way to count these events without duplicating the rest of my data.  If I split into rows, then the rest of the data is all duplicated and counting those columns will be incorrect.  I'm aware of the unpivot feature too, but again it seems to duplicate the rest of the data.

 

I considered pulling this column out into a new query, but then I'm lost on how I'd connect the relationship back to the rest of the columns.

Hi @chris886 ,

Can you provide some sample data and the expected results?



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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