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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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