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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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