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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Hiriji_ZA
New Member

Count occurrence of values within a comma separated list

Hi all,

 

I am very new to Power BI (loving it thought!) and need some help, either with how I solve this via DAX or any alternative suggestions.

 

My use case is that I have several project plans which contain a list of project tasks and resources assigned thereto. Much like in MS Project, the resources are a comma separated list of names. I've created a new table in which I combine the project tasks and these resources and that's what I'm building my report on.

 

I'm looking for a way to gauge capacity of my team based on how often their names appear on the tasks. SOme of the challenges with the data:

  • The order is not always the same
  • There are typos at times, though I can handle this at a source level
  • There might be 1 name or 7, so need a way to make it flexible

I want to show this data in a bar chart. I started by splitting the names into columns by a comma delimenator but I wasn't sure whether I could just do this via Dax on the original column.

 

My dataset sample essentially looks like this:

Resource.1Resource.2Resource.3
WilliamJohnnull
Sandranullnull
JohnWilliamSandra

 

What's the best way to approach this?

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, when splitting the column, expland the Advanced Options traingle and select rows.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, when splitting the column, expland the Advanced Options traingle and select rows.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks, I needed to take a step back to see the obvious. 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Read about unpivoting your source data to make it suitable for consumption in Power BI.

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 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 Solution Authors