• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Transpose / pivot data in power Query|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Transpose / pivot data in power Query|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryTranspose / pivot data in power Que…
sp_PrintTopic sp_TopicIcon
Transpose / pivot data in power Query
Avatar
kevin Langeveld
Member
Members
Level 0
Forum Posts: 11
Member Since:
February 9, 2022
sp_UserOfflineSmall Offline
1
February 9, 2022 - 8:35 pm
sp_Permalink sp_Print sp_EditHistory

Dear Forum

 

i have three columns.

one column contains the invoice number

one column contains the description of the booking (always 5)

One column contains the Value

Instead of this descriptions on a horizontal row, I want them as a column.
How can I Transpose this?

See attachementDataset.pngImage Enlarger

 

The blue one is the goal , how my other set is to harmonize the data.Goal.pngImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage Dataset.png (18 KB)
  • sp_PlupImage Goal.png (8 KB)
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4448
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
February 9, 2022 - 10:14 pm
sp_Permalink sp_Print

Hi Kevin,

Welcome to our forum!

You need to pivot the description column. If you attach a sample file it's easier for us to help you. If you get stuck, please share a file.

Mynda

Avatar
kevin Langeveld
Member
Members
Level 0
Forum Posts: 11
Member Since:
February 9, 2022
sp_UserOfflineSmall Offline
3
February 10, 2022 - 9:06 pm
sp_Permalink sp_Print

Dear Mynda,

thanks for the welcome and the reply,

 

I tried to pivot it, but then the values will not go in the right column.

As the screenshot shown, in the row each line has its value.

But now it brings the value to one row, instead of in the related column.pivot_values.pngImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage pivot_values.png (59 KB)
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4448
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
February 11, 2022 - 9:19 am
sp_Permalink sp_Print

Hi Kevin,

Please provide a sample Excel file. It looks like you didn't choose the correct column for the values.

Mynda

Avatar
kevin Langeveld
Member
Members
Level 0
Forum Posts: 11
Member Since:
February 9, 2022
sp_UserOfflineSmall Offline
5
February 14, 2022 - 10:17 pm
sp_Permalink sp_Print sp_EditHistory

I thought i submitted the file, but apparently it wasn't uploaded properly,

 

here I try it again; 

Avatar
kevin Langeveld
Member
Members
Level 0
Forum Posts: 11
Member Since:
February 9, 2022
sp_UserOfflineSmall Offline
6
February 14, 2022 - 10:19 pm
sp_Permalink sp_Print

oh by the way, i now see its you, Mynda !

absolutely love your videos! i learned so much from you!

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4448
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
7
February 15, 2022 - 11:35 am
sp_Permalink sp_Print

Hi Kevin,

Great to hear you found my videos helpful

Thanks for sharing your file. If you look at the value in the Rekeningnr column you'll see that it's different for each description. Similarly for some of the rows in the Rekening column. If theses values were the same on each row, then the data would Pivot more in line with the way you're expecting. 

If you take a smaller sample of your data, say rows 2 - 16, and pivot that you'll see the issue more clearly. Alternatively, if you insert a PivotTable and try to pivot the Description field in the column labels, as you add fields to the row labels you'll see the issue is evident once you get to the Rekeningnr column, and then continues to get worse as you add fields to the row labels. This is the same thing that happens in Power Query when you pivot the Description column.

I hope that helps you understand the issue. Hopefully you can decide which columns you can eliminate to achieve the pivoted result you're after as that's not something I can decide for you.

Mynda

Avatar
kevin Langeveld
Member
Members
Level 0
Forum Posts: 11
Member Since:
February 9, 2022
sp_UserOfflineSmall Offline
8
February 18, 2022 - 10:17 pm
sp_Permalink sp_Print

Hi Myanda,

the 'rekeningnr' doenst need to be in there,

i only would need the | Groente | Overig | BTW  actually,

If there is a way to eliminate this, probably by filtering the data first by ; ' doesn't contain value' and then pivot whats left?

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4448
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
9
February 19, 2022 - 11:34 am
sp_Permalink sp_Print

Hi Kevin,

If you remove the Rekeningnr column and rows containing fust, fruit and totaal inc btw, before pivoting then the issue is resolved. Try it and you will see.

Mynda

Avatar
kevin Langeveld
Member
Members
Level 0
Forum Posts: 11
Member Since:
February 9, 2022
sp_UserOfflineSmall Offline
10
March 1, 2022 - 5:23 pm
sp_Permalink sp_Print sp_EditHistory

unfortunately i didn't figure it out yet,

Because i need the rows with Fust, groente etc, those are the row value,

this is a picture of what I need to achieve, Goal-1.pngImage Enlarger

To have the overview by customer with the related values..

sp_PlupAttachments Attachments
  • sp_PlupImage Goal.png (3 KB)
  • sp_PlupImage Goal-1.png (8 KB)
Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 622
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
11
March 1, 2022 - 8:53 pm
sp_Permalink sp_Print

Can you not just remove everything apart from the last 3 columns, then pivot on description as Mynda suggested before? That appears to do what you want.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Anders Sehlstedt, RAQUEL ACION, Dana Friedt, Chandler Davis, gogy13, Brenda Richards, Mark Luke
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 202
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Mark Luke
terimeri dooriyan
Jack Aston
AndyC
Denise Lloyd
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Sopi Yuniarti
Forum Stats:
Groups: 3
Forums: 24
Topics: 6218
Posts: 27267

 

Member Stats:
Guest Posters: 49
Members: 31901
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.