Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

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!

 

 

1 ACCEPTED SOLUTION
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.

View solution in original post

3 REPLIES 3
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.

 

Second Append Attempt.PNG

 

Anonymous
Not applicable

Here is a screenshot with StoreID data type

 

W data type.PNG

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.