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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.