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
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
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.