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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
HassanAshas
Helper V
Helper V

How to show results against three columns using same slicer in the same visuals

Hello, I have the dataset like this

 

Emp CodeNameSkillGrade
1MattAWS, Python, Django5
2AveryAWS4
3AryubAWS, Python, JavaScript6
4JacobAzure, NodeJS5
5ZaraNodeJS, React5
6AliAzure, Python, PySpark1
7JohnPySpark5
8Alisha 3
9NovakPython6
10AlexDjango4
11EmmaJavaScript, React, NodeJS4

 

I need to work with the Skills of the people but I am getting multiple values against them (I do know however that maximum values of Primary Skill by user will be three) 

 

So to work with individual skills, I have for now created three columns from the one column, with the use of split by delimeter. 

 

 

HassanAshas_1-1681197147018.png

 

I have three visuals as shown below,

 

HassanAshas_0-1681196931819.png

 

My problem is I need to use one single slicer of Skills for these three visuals.

Also, I want to use the values of these three columns as "one". That is, when I am counting Employees then I want to count the SUM of all three columns against each Skill. 
That is, if Python exists 3 times in "Skill.1", 2 times in "Skill.2", 2 times in "Skill.2" - then total Employees with Python will be 7. (It is also guaranteed that no employee will have a douplicate skill) 

 

Can anyone help me out in achieving these two requirements? (Using one slicer for all three slicers, and using sum of all three columns in the Resultant visuals) 

 

You may download the Power BI from here if needed: https://drive.google.com/file/d/1G1fWEkuQDqcgUnPTsmcGWu2fvoseUh26/view?usp=sharing

1 ACCEPTED SOLUTION
olgad
Super User
Super User

Hi, my suggestion to you, dont split the skills into columns, split into rows.

olgad_0-1681199004480.pngolgad_1-1681199060557.png

After you splitted right click on the skill column, transform-trim, to get rid of all the spaces. filter out blanks (for those who didnt have the 3rd or the second skill) and that solves both of your problems. 

olgad_2-1681199193344.pngolgad_3-1681199235310.png

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

6 REPLIES 6
olgad
Super User
Super User

Hi, my suggestion to you, dont split the skills into columns, split into rows.

olgad_0-1681199004480.pngolgad_1-1681199060557.png

After you splitted right click on the skill column, transform-trim, to get rid of all the spaces. filter out blanks (for those who didnt have the 3rd or the second skill) and that solves both of your problems. 

olgad_2-1681199193344.pngolgad_3-1681199235310.png

 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

@olgad  Employees table is a Dimension table in my data model which is connected to the Fact Table with the Emp_ID Key. 

If I duplicate the rows in my Employees table, then I will have duplicate Emp IDs for all the employees. This will be an issue because it will then create a Many-to-Many relation between the two tables. That's why I don't want to split by Rows. 

I am quite new to Power BI so I am not entirely sure how can I handle such a scenario. 

Create another employee table only with employees, duplicate the original one and leave only employee column. Then create relationship from that table one to many to this "employee skill" table and to the other fact table you have. Use employee from the newly created table in your visuals


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

@HassanAshas Hi, just wanted to follow up if you tried out my second suggestion and resolved the issue?


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

you could select all 3 split skills columns and unpivot them in power query, this would combine them into one column.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍


Hi, that doesn't work for me. Because it will create a Many-to-Many relation with my Fact Table (due to the duplication of Employees) 

I want to avoid the creation of Many to Many relation. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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