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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
cmcnally
Frequent Visitor

Separating values in a field for a count visual

Hi All,

 

Apologies if this has already been answered, I struggle to describe what I'm trying to do well enough to search the forum.

 

I have a PowerBi report that has a list of events taken from 2 different sources, a sharepoint list and a web XML feed. I'm using PowerBi to transform and merge the data. One of the fields I have is for audience and can contain multiple values separated by the pipe character "|".

 

How can I visual the counts of the individual audience categories?

 

Thanks

C

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@cmcnally ,

In Power Query Editor, select the audience column.
Click on "Split Column" > "By Delimiter".
Choose | as the delimiter and select "Split into Rows".
Group By Audience:

Click on "Group By" in the Home tab.
Group by the audience column and add a new column with the operation "Count Rows".
Load Data:

Click "Close & Apply".




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

4 REPLIES 4
bhanu_gautam
Super User
Super User

@cmcnally ,

In Power Query Editor, select the audience column.
Click on "Split Column" > "By Delimiter".
Choose | as the delimiter and select "Split into Rows".
Group By Audience:

Click on "Group By" in the Home tab.
Group by the audience column and add a new column with the operation "Count Rows".
Load Data:

Click "Close & Apply".




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thanks for your reply. Will splitting into rows cause duplicate entries for other visuals in the report? I'm a safer making a dupilcate table/query for that specific visual and would that cause performance issues with the Power Bi report? Thanks

I was able to use the reference feature to create new table for your suggested count function. Thank you @bhanu_gautam 

@cmcnally  You are welcome 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






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.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors