Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I am trying to append these three example tables using Append Queries and it appears there's an issue as PBI is not appending all StoreID's into the same column.
Table 1
StoreID | Salesperson | Date | Company |
10 | GWA | 5/6/2019 | LLC |
21 | JNJ | 5/7/2019 | LLC |
10 | GWA | 5/6/2019 | LLC |
59 | OPI | 5/8/2019 | LLC |
Table 2
Salesperson | StoreID | Date |
TYI | 10 | 5/8/2019 |
OGI | 59 | 5/9/2019 |
OPI | 23 | 5/7/2019 |
REW | 10 | 5/3/2019 |
Table 3
Date | Salesperson | StoreId |
5/3/2019 | GWA | 10 |
5/4/2019 | HIO | 55 |
5/6/2019 | CIO | 10 |
I should mention that I manually entered the data in PBI, it is not file upload or query so the data format is date, string and integer in all three cases.
This is the result I get when I append these three tables.
StoreID | Salesperson | Date | Company | StoreId |
10 | GWA | 5/6/2019 | LLC | null |
21 | JNJ | 5/7/2019 | LLC | null |
10 | GWA | 5/6/2019 | LLC | null |
59 | OPI | 5/8/2019 | LLC | null |
10 | TYI | 5/8/2019 | null | null |
59 | OGI | 5/9/2019 | null | null |
23 | OPI | 5/7/2019 | null | null |
10 | REW | 5/3/2019 | null | null |
null | GWA | 5/3/2019 | null | 10 |
null | HIO | 5/4/2019 | null | 55 |
null | CIO | 5/6/2019 | null | 10 |
In the last three rows, the StoreID values should be in column 1 not column 5. Also, column 5 shouldn't even be there since the StoreID (column 5) is StoreID from column 1. The data format is the same and the column name is the same.
Please help! I need to apply this logic on much larger datasets asap.
Thank you!
Solved! Go to Solution.
Disregard my previous messages. I just realized that I had two versions of the StoreId column name. One as StoreID and other as StoreId. This has been causing the wrong append.
I also looked at some other posts that suggested creating duplicate tables and creating the same order of columns and removing unwanted columns before appending the datasets. I did this and the append still didn't append the data correctly.
Here is a screenshot with StoreID data type
Disregard my previous messages. I just realized that I had two versions of the StoreId column name. One as StoreID and other as StoreId. This has been causing the wrong append.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
126 | |
106 | |
105 | |
86 | |
72 |