Forum Discussion
Combine different database tables
- 6 years ago
Hi Analitika ,
The 'otherSteps' lines were just placeholders to represent further transformation steps if you needed to do them, such as 'Changed Types' etc. They are not necessary but show that you must use the last step in each Source segment in the Table.Combine() function.
The data source privacy levels are something that you need to resolve at your end. If these sources are already set up in Power Query, you can try going to Data Source Settings and check that both data sources have the same privacy levels i.e. None, Private, Organisational, or Public.
Pete
I mean Table.Combine
- amitchandak6 years ago
Super User
Analitika , that should be the same as append option in menu?
Can you share a few lines of sample data and sample output in table format?
- Analitika6 years ago
Post Prodigy
If i do like that i will have 4 database sized in one pbix file, but i want to have 2 database sized file
1st database = 700 Mb
let
Source = Sybase.Database(SelectServer, SelectDatabase1),
DBA_view_DidknObj = Source{[Schema="DBA",Item="view_DidknObj"]}[Data]
in
DBA_view_DidknObj2st database = 700 Mb
let
Source = Sybase.Database(SelectServer, SelectDatabase2),
DBA_view_DidknObj = Source{[Schema="DBA",Item="view_DidknObj"]}[Data]
in
DBA_view_DidknObjCombined database = 1400 Mb
let
Source = Table.Combine({#"DBA 1", #"DBA 2")"})
in
SourceTotal = 700+700+1400 = 2800 MB
I need only 1400 MB
- BA_Pete6 years ago
Super User
Hi Analitika ,
You can do this in a single query so you're not holding all the tables. Something like:
let Source1 = Sybase.Database(SelectServer, SelectDatabase1), DBA_view_DidknObj1 = Source1{[Schema="DBA",Item="view_DidknObj"]}[Data], otherSteps1 = otherSteps, Source2 = Sybase.Database(SelectServer, SelectDatabase2), DBA_view_DidknObj2 = Source2{[Schema="DBA",Item="view_DidknObj"]}[Data], otherSteps2 = otherSteps, Append = Table.Combine( {otherSteps1, otherSteps2} ) in AppendPete