Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Append Query Not Working Properly

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

StoreIDSalespersonDateCompany
10GWA5/6/2019LLC
21JNJ5/7/2019LLC
10GWA5/6/2019LLC
59OPI5/8/2019LLC

 

Table 2

SalespersonStoreIDDate
TYI105/8/2019
OGI595/9/2019
OPI235/7/2019
REW105/3/2019

 

Table 3

DateSalespersonStoreId
5/3/2019GWA10
5/4/2019HIO55
5/6/2019CIO10

 

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.

 

StoreIDSalespersonDateCompanyStoreId
10GWA5/6/2019LLCnull
21JNJ5/7/2019LLCnull
10GWA5/6/2019LLCnull
59OPI5/8/2019LLCnull
10TYI5/8/2019nullnull
59OGI5/9/2019nullnull
23OPI5/7/2019nullnull
10REW5/3/2019nullnull
nullGWA5/3/2019null10
nullHIO5/4/2019null55
nullCIO5/6/2019null10

 

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!

 

 

  • Anonymous's avatar
    Anonymous
    7 years ago

    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.

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    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.

     

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Here is a screenshot with StoreID data type

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        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.