Merge Table Date Order

panagioti9

New Member
Joined
Mar 11, 2020
Messages
2
Platform
  1. Windows
Dear all,

I am trying to merge 3 table (excel data)in chronological order as as per below

1583955741886.png
1583955754940.png
1583955763041.png



1583955772910.png





Can you help me with that?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Welcome to the forum,

Would simply merging these three tables and then sorting by "Due Date" column help?
The table order doesn't really matter in PowerBI as, once you load your data model into your report, each visualization can be sorted individually depending on the fields that were used.
 
Upvote 0
use Append feature in order 1 tbl, 2 tbl and 3 tbl
then sort Date and Desc ascending if necessary
 
Upvote 0
Thanks both of you. however the point is that column name is not the same. ( date and due date) that we I find it more complicated
 
Upvote 0
DateDescAmountDue DateDescAmountDue DateDescAmountDue DateDescAmount
01/03/2020a10002/03/2020r12003/03/2020r23001/03/2020a100
05/03/2020b15005/03/2020e23005/03/2020e23002/03/2020r120
13/03/2020c30014/03/2020t35012/03/2020t35003/03/2020r230
05/03/2020b150
05/03/2020e230
05/03/2020e230
12/03/2020t350
13/03/2020c300
14/03/2020t350

Rich (BB code):
// Query1
let
    Source1 = Table.RenameColumns(Excel.CurrentWorkbook(){[Name="Table1"]}[Content],{{"Date", "Due Date"}}),
    Source2 = Excel.CurrentWorkbook(){[Name="Table2"]}[Content],
    Source3 = Excel.CurrentWorkbook(){[Name="Table3"]}[Content],
    Append = Table.Combine({Source1, Source2, Source3}),
    Type = Table.TransformColumnTypes(Append,{{"Due Date", type date}, {"Desc", type text}, {"Amount", Int64.Type}}),
    Sort = Table.Sort(Type,{{"Due Date", Order.Ascending}, {"Desc", Order.Ascending}})
in
    Sort
this is not complicated ?
 
Upvote 0

Forum statistics

Threads
1,223,798
Messages
6,174,667
Members
452,576
Latest member
AlexG_UK

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top