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

October 28 & 29: Experts share their secrets on how to pass the Fabric Analytics Engineer certification exam—live. Learn more

Reply
Sonne
Helper II
Helper II

Data view

Hello,

I have a problem with the view of connected data from 2 tables . 

I have 2 excel files which I import : 

table 1 has the following structure : 

excel file 1  
unique id organisation planed money
11111org 110

 

Table 2 has the follwing structure: 

unique id organisation person idspent money 
11111org  1 12348
11111org  1 12356

 

In Power BI i want to see the planed and the spent money . I connect on unique id, but i always get the planned values in all columns:

I get something like this:

output in Power BI table     
uniqu id organisation person idplaned money spent money
11111org  1 1234108
11111org  1 1235106

 

I have no idea how to realize this in PBI.  Is this possible to have it in 1 table ? Maybe like this: 

uniqu id organisation person idplaned money spent money
11111org  1  10 
11111org  1 1234 8
11111org  1 1235 6
1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Sonne ,

 

In the power query, the merge logic of append is based on matching the names of the fields. Column names that do not exist in the original table will form a new column and will be null at the corresponding values.

vhenrykmstf_0-1643859404367.png


If you don't want to display these null values, you can refer to the following operation.

vhenrykmstf_1-1643859430510.png


If the problem is still not resolved, could you further describe your requirements and provide screenshots of your expectations accordingly. I will be able to answer your questions as soon as possible. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Sonne
Helper II
Helper II

Thanks i got it working now. Problem was the different spelling of the column names.

Hi @Sonne ,

 

Thanks for your feedback.😊

 

Best regards,

Henry

v-henryk-mstf
Community Support
Community Support

Hi @Sonne ,

 

In the power query, the merge logic of append is based on matching the names of the fields. Column names that do not exist in the original table will form a new column and will be null at the corresponding values.

vhenrykmstf_0-1643859404367.png


If you don't want to display these null values, you can refer to the following operation.

vhenrykmstf_1-1643859430510.png


If the problem is still not resolved, could you further describe your requirements and provide screenshots of your expectations accordingly. I will be able to answer your questions as soon as possible. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sonne
Helper II
Helper II

if I append, then the column "spent money" is added, with the value null, but the rows from the second table are included.

result is 

unique id organisation planed moneyspent money
11111org 110null

 

Can it be , because the ids are the same? in the example you mentioned, the ids are different in table 1 and table 2

amitchandak
Super User
Super User

@Sonne , Append the two tables in power query, that is one of the way .

 

Second way it create common dimensions for both tables and then display planed money, spent money measures using those common tables

 

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

October NL Carousel

Fabric Community Update - October 2024

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