• 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

Pivot Data of the clone of pivot table|Power Pivot|Excel Forum|My Online Training Hub

You are here: Home / Pivot Data of the clone of pivot table|Power Pivot|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 PivotPivot Data of the clone of pivot ta…
sp_PrintTopic sp_TopicIcon
Pivot Data of the clone of pivot table
Avatar
Garb I

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
July 21, 2021
sp_UserOfflineSmall Offline
1
July 21, 2021 - 7:22 pm
sp_Permalink sp_Print

Hi

I've received data from my client like this

Data tableImage Enlarger

[Image Can Not Be Found]

What can I do to make this table into a pivot table

sp_PlupAttachments Attachments
  • sp_PlupImage Capture2.PNG (441 KB)
Avatar
Steve Olson
Member
Members

Power Query

Power Pivot

Power BI
Level 0
Forum Posts: 25
Member Since:
October 17, 2018
sp_UserOfflineSmall Offline
2
July 22, 2021 - 6:28 am
sp_Permalink sp_Print

Mynda's blog post    https://www.myonlinetraininghu.....cenarios    gives a great explanation on how to do this.  I suggest you follow her Scenario #3.

I mocked up a sample of what I think is your excel data based on your Capture2.PNG.   

This is the query I created.  You will need to substitute your file location in place of mine

let
Source = Excel.Workbook(File.Contents("C:\YOUR FILE LOCATION"), null, true),
#"Sheet1 (2)_Sheet" = Source{[Item="Sheet1 (2)",Kind="Sheet"]}[Data],
#"Changed Type" = Table.TransformColumnTypes(#"Sheet1 (2)_Sheet",{{"Column1", type text}, {"Column2", type text}, {"Column3", type any}, {"Column4", type any}, {"Column5", type any}, {"Column6", type any}, {"Column7", type any}, {"Column8", type any}, {"Column9", type any}, {"Column10", type any}, {"Column11", type any}, {"Column12", type any}, {"Column13", type any}, {"Column14", type any}}),
#"Transposed Table" = Table.Transpose(#"Changed Type"),
#"Filled Down" = Table.FillDown(#"Transposed Table",{"Column1"}),
#"Removed Columns" = Table.RemoveColumns(#"Filled Down",{"Column2"}),
#"Merged Columns" = Table.CombineColumns(Table.TransformColumnTypes(#"Removed Columns", {{"Column1", type text}}, "en-US"),{"Column1", "Column3"},Combiner.CombineTextByDelimiter(";", QuoteStyle.None),"Merged"),
#"Transposed Table1" = Table.Transpose(#"Merged Columns"),
#"Promoted Headers" = Table.PromoteHeaders(#"Transposed Table1", [PromoteAllScalars=true]),
#"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"ITEM;", type text}, {"Categories;", type text}, {"1/31/2021;Qty", Int64.Type}, {"1/31/2021;Amt", type number}, {"2/28/2021;Qty", Int64.Type}, {"2/28/2021;Amt", type number}, {"3/31/2021;Qty", Int64.Type}, {"3/31/2021;Amt", type number}, {"4/30/2021;Qty", Int64.Type}, {"4/30/2021;Amt", type number}, {"5/31/2021;Qty", Int64.Type}, {"5/31/2021;Amt", type number}, {"6/30/2021;Qty", Int64.Type}, {"6/30/2021;Amt", type number}}),
#"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Changed Type1", {"ITEM;", "Categories;"}, "Attribute", "Value"),
#"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Columns", "Attribute", Splitter.SplitTextByDelimiter(";", QuoteStyle.Csv), {"Attribute.1", "Attribute.2"}),
#"Changed Type2" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Attribute.1", type date}, {"Attribute.2", type text}}),
#"Pivoted Column" = Table.Pivot(#"Changed Type2", List.Distinct(#"Changed Type2"[Attribute.2]), "Attribute.2", "Value", List.Sum),
#"Changed Type3" = Table.TransformColumnTypes(#"Pivoted Column",{{"Amt", Currency.Type}, {"Qty", Int64.Type}}),
#"Renamed Columns" = Table.RenameColumns(#"Changed Type3",{{"Categories;", "Categories"}, {"ITEM;", "ITEM"}})
in
#"Renamed Columns"

Avatar
Alan Sidman
Steamboat Springs, CO
Member
Members


Trusted Members
Level 0
Forum Posts: 131
Member Since:
October 18, 2018
sp_UserOfflineSmall Offline
3
July 23, 2021 - 12:20 am
sp_Permalink sp_Print

See attached file for my solution.

Avatar
Alan Sidman
Steamboat Springs, CO
Member
Members


Trusted Members
Level 0
Forum Posts: 131
Member Since:
October 18, 2018
sp_UserOfflineSmall Offline
4
July 23, 2021 - 5:58 am
sp_Permalink sp_Print

crossposted:  https://www.excelguru.ca/forum.....ata-source

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1512
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
5
July 23, 2021 - 10:32 am
sp_Permalink sp_Print

Thanks Alan

Avatar
Alan Sidman
Steamboat Springs, CO
Member
Members


Trusted Members
Level 0
Forum Posts: 131
Member Since:
October 18, 2018
sp_UserOfflineSmall Offline
6
July 24, 2021 - 10:07 pm
sp_Permalink sp_Print

Look at this link for an alternative means that will probably work for you with many items

 

https://www.myonlinetraininghu.....characters

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Brian Pham
Guest(s) 9
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
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
drsven
Annie Witbrod
wahab tunde
Cong Le Duc
Faisal Bashir
Ivica Cvetkovski
Blaine Cox
Shankar Srinivasan
riyepa fdgf
Hannah Cave
Forum Stats:
Groups: 3
Forums: 24
Topics: 6205
Posts: 27211

 

Member Stats:
Guest Posters: 49
Members: 31880
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.