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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.