May 24 2024 06:33 AM
Hi @SergeiBaklan sir,
I have invoice detail table as below:
Also, I have EM - Misc Charge table that don't have date column:
But these 2 tables have 'DBName-Point_Id' , 'DBName-Id' & 'Charge' as a common columns.
I need to find the dates for each rows of 'EM - Misc Charge' table from invoice detail table for their corresponding 'DBName-Point_Id' , 'DBName-Id' & charge using power query transformations(upstream).
I am struggling to achieve this. we had a idea of appending these tables but that would increase the number of rows as we have millions of rows in our original data. This may cause a performance issue.
PFA file here Budget vs Accruals.pbix
Please let me know if you need further details
Thanks in advance!
May 25 2024 07:06 AM
I need to find the Dates for each rows of 'EM - Misc Charge' table from 'Invoice Detail' table for their corresponding [DBName-Point_Id] , [DBName-Id] & [Charge]
If you Merge tables 'EM - Misc Charge' with 'Invoice Detail' on the above common keys/columns Left Outer:
then Expand the [Date] field from the [Invoice Detail] merged table:
you should get what you want or am I missing something?
May 29 2024 01:49 AM
Hi @Lorenzo
Apologise for the delay in getting back to you!
Many thanks for this amazing solution!
Just to confirm,
what if we wanted to combine both (EM - Misc Charge & Invoice Detail) tables into single table(all data from both table) by looking up at the dates from Invoice Detail table?
Is it possible to append both tables and also lookup the date in a single step?
Thanks in advance!
May 30 2024 06:30 AM
Hi @Excellove15
what if we wanted to combine both (EM - Misc Charge & Invoice Detail) tables into single table(all data from both table) by looking up at the dates from Invoice Detail table?
To do it with the User Interface only:
May 30 2024 08:58 AM
Jun 16 2024 02:04 PM
> 2 week ago I will implement this and get back to you!
If you have a challenge with the implementation, let us know 🙂
In the meantime re. what if we wanted to combine both (EM - Misc Charge & Invoice Detail) tables into single table(all data from both table) by looking up at the dates from Invoice Detail table? ... Is it possible to ...lookup the date in a single step?
With the Advanced Editor this could be something like:
let
SingleStep = Table.Combine(
{
Table.ExpandTableColumn(
Table.NestedJoin(
#"EM - Misc Charge", {"DBName-Point_Id", "DBName-Id", "Charge"},
#"Invoice Detail", {"DBName-Point_Id", "DBName-Id", "Charge"},
"Invoice Detail", JoinKind.LeftOuter
),
"Invoice Detail", {"Date"}
),
Table.RemoveColumns(
Table.NestedJoin(
#"Invoice Detail", {"DBName-Point_Id", "DBName-Id", "Charge"},
#"EM - Misc Charge", {"DBName-Point_Id", "DBName-Id", "Charge"},
"EM - Misc Charge", JoinKind.LeftAnti
),
{"EM - Misc Charge"}
)
}
)
in
SingleStep
Enjoy it...