cancel
Showing results for 
Search instead for 
Did you mean: 
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

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!