Forum Discussion

Sonne's avatar
Sonne
Helper II
4 years ago
Solved

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
  • 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.


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


    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.

5 Replies

  • 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

  • v-henryk-mstf's avatar
    v-henryk-mstf
    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.


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


    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.

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