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
Anonymous
Not applicable

Need help in DAX

 

Name

Skills

Mahesh

Power BI, Cognos, Tableau

Saravan

Tableau, Cognos

Raju

Power BI, MSBI

Nagesh

MSBI, Tableau

Ravi

Tableau, Power BI

 

 

Requirement is to know get the number of users having the each skill Power BI , Tableau, MSBI, Cognos. Need to be shown data in bar char or Pie chart

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey @Anonymous ,

 

here you will find a pbix that contains a solution that does rely on data modeling instead of using DAX: https://tommartens-my.sharepoint.com/:u:/g/personal/tom_minceddata_com/EZ1UYqubNL5OrQP-VIdgBEsBF93buB8kEzbOZhVW35sslA?e=Zj62yj

 

I created a second table using Power Query that looks like this:

image.png

Then I creatd a Many-To-Many relationship between both tables like so:

image.png

 

This data model allows to create the visuals you mentioned:

image.png

 Hopefully this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

You could use split the "Skills" column and unpivot new columns in the query editor. 

1-1.PNG

Then use "trim" to remove blank value.

1-2.PNG

Here is the result.

1-3.PNG

Here is my test file for your reference.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
TomMartens
Super User
Super User

Hey @Anonymous ,

 

here you will find a pbix that contains a solution that does rely on data modeling instead of using DAX: https://tommartens-my.sharepoint.com/:u:/g/personal/tom_minceddata_com/EZ1UYqubNL5OrQP-VIdgBEsBF93buB8kEzbOZhVW35sslA?e=Zj62yj

 

I created a second table using Power Query that looks like this:

image.png

Then I creatd a Many-To-Many relationship between both tables like so:

image.png

 

This data model allows to create the visuals you mentioned:

image.png

 Hopefully this provides what you are looking for.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
SivaMani
Resident Rockstar
Resident Rockstar

@Anonymous,

 

Please check this DAX function - https://docs.microsoft.com/en-us/dax/containsstring-function-dax

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.

Top Solution Authors