• 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Power Query - Using custom column to replicate transformation techniques across all tables |Power Query|Excel Forum|My Online Training Hub

You are here: Home / Power Query - Using custom column to replicate transformation techniques across all tables |Power Query|Excel Forum|My Online Training Hub

vba course banner

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 QueryPower Query - Using custom column t…
sp_PrintTopic sp_TopicIcon
Power Query - Using custom column to replicate transformation techniques across all tables
Avatar
Chinwe Cynthia

New Member
Members
Level 0
Forum Posts: 2
Member Since:
March 11, 2022
sp_UserOfflineSmall Offline
1
March 11, 2022 - 5:08 am
sp_Permalink sp_Print sp_EditHistory

I have a question please. I was trying to replicate the formular thought in this video

()

with respect to appending worksheets with different column names using step 1 option of adding custom column. My question is; how do I use the custom column to automatically replicate my transformation techniques across all tables when my column headers have different names and I do not plan to replace the names. I could do it one by one for each table before appending, but that is a longer option especially if I have numerous worksheets. 

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1529
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
March 11, 2022 - 1:06 pm
sp_Permalink sp_Print

Hi,

You could modify the Transform Sample File query (it's one of the Helper Queries created automatically in PQ) so that it removes the first row of the source files.  This should remove the column headers, allowing you to append the files.  You can then name the columns as you wish.

That said, if you don't plan on replacing the column names, which column names will you use?

If you need further help, please supply some sample data showing the column names in different files.

Regards

Phil

Avatar
Chinwe Cynthia

New Member
Members
Level 0
Forum Posts: 2
Member Since:
March 11, 2022
sp_UserOfflineSmall Offline
3
March 13, 2022 - 5:59 am
sp_Permalink sp_Print

Hi Philip, thank you so much for your response. I have attached the respective file. However,  I want to retain all column headers, but my major challenge is that I do not want to replicate the transformation technique applied in one table/sheet manually in others. I want to be able to copy the transformation technique applied in one table, create custom column, paste the formulars and then it automatically transforms all the other tables. I will appreciate your response to this. Thank you so much. 

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1529
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
March 13, 2022 - 10:52 am
sp_Permalink sp_Print sp_EditHistory

Hi,

You need to explain and show through examples, what transforms you wish to perform.  The file you supplied has no queries so I am none the wiser as to what it is you are trying to achieve.

You say that you do not want to manually replicate the transformation applied in one table in other tables.  Why would you be manually replicating the transformations?  If all files are processed by the same sample queries then they all have the same transformations applied to them.

If you intend to keep all column headers from the different files, you're going to end up with something like this

tableImage Enlarger

I don't understand why you would want that, it's not a good layout for creating reports later e.g. with a pivot table.  You have multiple redundant rows where the column headers from each file are.

You would be better off rearranging the data to look like this, which is a tabular layout and ideal for producing reports.  See attached file.

unpivotImage Enlarger

Regards

Phil 

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Misael Gutierrez Sr.
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 218
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Cathi Giard
Sarah Young
Henry Delgado
Alita Nieuwoudt
KL KOH
Joao Marques
Regi Hampton
Taffie Elliott
Paramita Chakraborty
David du Toit
Forum Stats:
Groups: 3
Forums: 24
Topics: 6358
Posts: 27805

 

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