Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I have a table that I am trying merge into the same table with some specific conditions
Table contains:
First I merged based one into the other:
= Table.NestedJoin(#"Filtered Rows", {"Father"}, #"Filtered Rows", {"Father"}, "MergedTable", JoinKind.LeftOuter)
NowI want to select only those rows that have:
Any tips how to achieve it?
thanks
Solved! Go to Solution.
= Table.AddColumn(#"Merged Queries", "Custom", each Table.SelectRows([MergedTable],
(Magic) =>
(Magic[Index]<[Index]) and
(Magic[Level]=([Level]-1))))
= Table.AddColumn(#"Merged Queries", "Custom", each Table.SelectRows([MergedTable],
(Magic) =>
(Magic[Index]<[Index]) and
(Magic[Level]=([Level]-1))))
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 6 | |
| 5 | |
| 5 |