cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fernandoC
Helper V
Helper V

How to group values from a column based on the value of another one

Hi!

 

Wanted to reach out as I´ve been trying to find a way to achieve the following:

 

I have a table that has the following structure

 

NameSkill
John DoeJava
John Doe.NET

Michael Jordan

Python
Michael JordanScala

 

I would like to have the following outcome

 

NameSkill
John DoeJava/.NET
Michael JordanPython/Scala

 

Thank you for your assistance.

 

Best, 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @fernandoC ;

You could create a measure or column :

1.create a measure.

Measure = CONCATENATEX(FILTER(ALL('Table'),[Name]=MAX('Table'[Name])),'Table'[Skill], "/")

2.create a column.

Measure = CONCATENATEX(FILTER(ALL('Table'),[Name]=MAX('Table'[Name])),'Table'[Skill], "/")

The final output is shown below:

vyalanwumsft_0-1637561763491.png

vyalanwumsft_1-1637561771386.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @fernandoC ;

You could create a measure or column :

1.create a measure.

Measure = CONCATENATEX(FILTER(ALL('Table'),[Name]=MAX('Table'[Name])),'Table'[Skill], "/")

2.create a column.

Measure = CONCATENATEX(FILTER(ALL('Table'),[Name]=MAX('Table'[Name])),'Table'[Skill], "/")

The final output is shown below:

vyalanwumsft_0-1637561763491.png

vyalanwumsft_1-1637561771386.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@fernandoC , Create a measure and use it with name, in visual

 

measure = concatenatex(Table, Table[Skill], "/")

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Hi @amitchandak 

 

I tried using a measure but I'm not getting the expected results. When used in a table visual the results are not being grouped based on the Name. Any suggestions?. 

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!