July 16, 2010
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
Power Query
Power Pivot
Xtreme Pivot Tables
Excel for Decision Making
Excel for Finance
Excel Analysis Toolpak
Power BI
Excel
Word
Outlook
Excel Expert
Excel Customer Service
PowerPoint
November 8, 2013
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
1 Guest(s)