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
hakanbacak60
New Member

Custom editing in Power Query

Hello everyone

 

I have a table like in the picture

 

2022-08-27_16-47-10.png

 

I want to make this table as below?

 

2022-08-27_16-50-43.png

I gave it as an example, but it continues until 2021-2022-2023.

 

thanks.

2 ACCEPTED SOLUTIONS
littlemojopuppy
Community Champion
Community Champion

Hi @hakanbacak60.  Remove the column attitude.  Then select the Gender column and find Unpivot Other Columns in the ribbon.  That should get you where you want to be.  Hope this helps!

View solution in original post

Hi @hakanbacak60.  I'm reciting this from memory so it might not be perfect, but if you look a little bit, it might get you where you want to go.  Select columns Gender and Year.  Somewhere on the Ribbon is Transform > Group By.  Look for that.  Sum up the % column.  The downside of doing that is that it's going to remove individual percentages and you're stuck with aggregations which might finder further analysis.

I would suggest creating a DAX measure for this.  Could simply be SUM([%]) but hard to tell without knowing how you intend to use it.

View solution in original post

5 REPLIES 5
hakanbacak60
New Member

Thank you @littlemojopuppy 

 

I did what you said and it worked. And it was really instructive.

hakanbacak60
New Member

Thank you. So how can I do the operation in the picture by adding a new column.

 

2022-08-28_23-48-21.png

 

Hi @hakanbacak60.  I'm reciting this from memory so it might not be perfect, but if you look a little bit, it might get you where you want to go.  Select columns Gender and Year.  Somewhere on the Ribbon is Transform > Group By.  Look for that.  Sum up the % column.  The downside of doing that is that it's going to remove individual percentages and you're stuck with aggregations which might finder further analysis.

I would suggest creating a DAX measure for this.  Could simply be SUM([%]) but hard to tell without knowing how you intend to use it.

Thank you @littlemojopuppy 

 

I did what you said and it worked. And it was really instructive.

littlemojopuppy
Community Champion
Community Champion

Hi @hakanbacak60.  Remove the column attitude.  Then select the Gender column and find Unpivot Other Columns in the ribbon.  That should get you where you want to be.  Hope this helps!

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.