Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Is it possible to merge group by step with a previous step which is original table?
Solved! Go to Solution.
Yes it is possible. All you need to do is refer to the previous step as your table name, and a column that exists in the source table as your matching column. So
ThisStep = Table.NestedJoin(GroupingStep, {"ColumnName"}, Source, {"OtherColumnName"}, "JoinColumnName", JoinKind.LeftOuter)
You can use any step in your query that returns a table, as a parameter in a table function, and there are lots of good reasons to do it.
--Nate
Yes, it is possible, conside the next example
use the merge with the setting provided in the nex image (use the same table in left and right part)
this is resulting the following formula
= Table.NestedJoin(#"Added Custom", {"Date"}, #"Added Custom", {"Date"}, "Added Custom", JoinKind.LeftOuter)
replace #"Added Custom" with name of previous step (Index) and if theire column name is different, replace date in {"Date"} with the name of the column in the Index step you want to use for merging.
Yes, it is possible, conside the next example
use the merge with the setting provided in the nex image (use the same table in left and right part)
this is resulting the following formula
= Table.NestedJoin(#"Added Custom", {"Date"}, #"Added Custom", {"Date"}, "Added Custom", JoinKind.LeftOuter)
replace #"Added Custom" with name of previous step (Index) and if theire column name is different, replace date in {"Date"} with the name of the column in the Index step you want to use for merging.
Yes it is possible. All you need to do is refer to the previous step as your table name, and a column that exists in the source table as your matching column. So
ThisStep = Table.NestedJoin(GroupingStep, {"ColumnName"}, Source, {"OtherColumnName"}, "JoinColumnName", JoinKind.LeftOuter)
You can use any step in your query that returns a table, as a parameter in a table function, and there are lots of good reasons to do it.
--Nate
Hello @yevhen_87 ,
İt is not possible in the same 1 query. But Yes, it is possible but in your Power Query you need 2 different query. You can duplicate your original query or reference(on previous step group by). Your second query needs to be added group by step and then merge 2 table.
Best Regards,
Gökberk Uzuntaş
LinkedIn: https://www.linkedin.com/in/g%C3%B6kberk-uzunta%C5%9F-b43906198/
Medium: https://medium.com/@uzuntasgokberk
İf this post helps, then please consider Accept it as solution and kudos to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
6 | |
6 | |
5 | |
5 |
User | Count |
---|---|
9 | |
9 | |
8 | |
6 | |
6 |