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

Combine multiple Table With List.Accumulate|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Combine multiple Table With List.Accumulate|Power Query|Excel Forum|My Online Training Hub

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
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 QueryCombine multiple Table With List.Ac…
sp_PrintTopic sp_TopicIcon
Combine multiple Table With List.Accumulate
Avatar
farshad mansourian
Member
Members
Level 0
Forum Posts: 9
Member Since:
March 13, 2022
sp_UserOfflineSmall Offline
1
December 1, 2022 - 4:15 am
sp_Permalink sp_Print

Hello I think the question is clear and does not need an explanation. Please assume three tables in an Excel file and solve the problem with the function mentioned in the title.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4354
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
December 1, 2022 - 8:59 am
sp_Permalink sp_Print

Hi Farshad,

The tone of your email does not come across well. If you would like an answer to your question, it is courtesy to provide some data yourself rather than expect our volunteers to do the work for you. We do not know if the data in the three separate tables is the same, has the same headers etc. There are many assumptions to be made.

I recommend you rephrase your question and provide a file.

Mynda

Avatar
farshad mansourian
Member
Members
Level 0
Forum Posts: 9
Member Since:
March 13, 2022
sp_UserOfflineSmall Offline
3
December 1, 2022 - 2:56 pm
sp_Permalink sp_Print

You are absolutely right, a file is attached

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1463
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
December 1, 2022 - 3:07 pm
sp_Permalink sp_Print

Hi Farshad,

Why do you want to use List.Accumulate for this?  You can just append (combine) the tables to create 1 table.

= Table.Combine({Table1, Table2, Table3})

Regards

Phil

Avatar
farshad mansourian
Member
Members
Level 0
Forum Posts: 9
Member Since:
March 13, 2022
sp_UserOfflineSmall Offline
5
December 1, 2022 - 5:00 pm
sp_Permalink sp_Print sp_EditHistory

Hello to Philip and Mynda . I had seen uses of  List.Accumulate In order to understand more about this function, I asked the members  to add this example as well. I am a beginner in programming and I am old, so I am trying to learn by seeing many examples

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1800
Member Since:
November 8, 2013
sp_UserOfflineSmall Offline
6
December 3, 2022 - 4:15 am
sp_Permalink sp_Print

Hi Farshad,

List.Accumulate is not necessary in this scenario.

However, the query looks like this:

let
Source = List.Accumulate({Table1,Table2,Table3},#table({},{}),(state,current)=>Table.Combine({state,current}))
in
Source

List.Accumulate is an iterator. When we have a function (Table.Combine) that can combine tables in a single operation, iterators are no longer necessary.

What it does:

Iteration 1: Combines first table with the empty one (state is initially an empty table), state = Table1

Iteration 2: Combines first table with second table, state = Table1 & Table2

Iteration 3: Combines  state with third table, state = Table1 & Table2 & Table3

Avatar
farshad mansourian
Member
Members
Level 0
Forum Posts: 9
Member Since:
March 13, 2022
sp_UserOfflineSmall Offline
7
December 3, 2022 - 6:01 am
sp_Permalink sp_Print

Hello Catalin. Thank you for your reply
Mynda and the rest of the members  Again, I apologize if there was a misunderstanding

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 170
Currently Online: Anders Sehlstedt, Brenda Krol
Guest(s) 47
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1431
Anders Sehlstedt: 848
Velouria: 574
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 213
A.Maurizio: 202
Aye Mu: 201
Jessica Stewart: 185
Newest Members:
David Collins
Andras Marsi
Orimoloye Funsho
YUSUF IMAM KAGARA
PRADEEP PRADHAN
Vicky Otosnika
Abhishek Singh
Kevin Sojourner
Kara Weiss
And Woox
Forum Stats:
Groups: 3
Forums: 24
Topics: 6047
Posts: 26544

 

Member Stats:
Guest Posters: 49
Members: 31497
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Riny van Eekelen
© Simple:Press —sp_Information
  • 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
 
  • About My Online Training Hub
  • Contact
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

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.

Download A Free Copy of 100 Excel Tips & Tricks

excel tips and tricks ebook

We respect your privacy. We won’t spam you.

x