Forum Discussion
Aggregating values from different tables to create visual with one table
- Anonymous2 years ago
Looking at your 3 tables, it seems like they use a common structure of Entity_ID, DMCC, and Paid_Amount.
Rather than have 3 tables, you can set up your Power Query (Transform data) to append all 3 tables into a new single table. Then you can mark the original tables as "Enable Load = False" and only import the resulting single table into Power BI.
You can do this on the home menu of transform data where you select "Append Queries as new"
- 2 years ago
Hi,
One of ways is to create append table in Power Query Editor, like below, and load it to Power BI desktop.
Please check the below picture and the attached pbix file.
Table.Combine - PowerQuery M | Microsoft Learn
let Source = Table.Combine({#"Table 1", #"Table 2", #"Table 3"}) in Source
Hi Anonymous ,
Thank you for sharing this response. Just a quick question since the examples I shared were only a subset of the actual data I will be working with. Would this "Append Queries" feature work with a large set of data??. I may have to append up to 12 tables each with 30,000+ rows with similar fields.
- Anonymous2 years agoNot applicable
Yes it works great with large datasets. You just need to make sure all of the columns you want are identical in both name and whether those characters are upper and lower case.
To make your life easy, you can select only the columns you want in each table and right click -> Remove other columns. This can make your code quite robust should any extra columns random pop in.
- willq2 years agoNew Member
Alright thank you for clarification. I'll give it a shot to see where I land with it. Much appreciated!