October 28 & 29: Experts share their secrets on how to pass the Fabric Analytics Engineer certification exam—live. Learn more
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 |
11111 | org 1 | 10 |
Table 2 has the follwing structure:
unique id | organisation | person id | spent money |
11111 | org 1 | 1234 | 8 |
11111 | org 1 | 1235 | 6 |
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 id | planed money | spent money |
11111 | org 1 | 1234 | 10 | 8 |
11111 | org 1 | 1235 | 10 | 6 |
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 id | planed money | spent money |
11111 | org 1 | 10 | ||
11111 | org 1 | 1234 | 8 | |
11111 | org 1 | 1235 | 6 |
Solved! Go to Solution.
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.
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.
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 money | spent money |
11111 | org 1 | 10 | null |
Can it be , because the ids are the same? in the example you mentioned, the ids are different in table 1 and table 2
@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
User | Count |
---|---|
105 | |
99 | |
98 | |
86 | |
49 |
User | Count |
---|---|
162 | |
142 | |
132 | |
102 | |
63 |