Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

What does this power query does?

I have a report and I am trying to understand the query written in there. This is one of the table which has been manually created and have columns "max" and "min" along with others. I dont understand what the below queries are doing. in one step there is a filtering with max as no null and then max as null and then there is merging but there is no 2nd table defined.

What is happening here?? Can someone explain?



#"Filtered Rows2" = Table.SelectRows(#"Changed Type", each ([max] <> null)),
#"Filtered Rows" = Table.SelectRows(#"Changed Type", each ([max] = null)),
#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"max", "min"}),
#"Merged Queries" = Table.NestedJoin(#"Removed Columns", {"source_ext_id"}, #"Filtered Rows2", {"source_ext_id"}, "max", JoinKind.LeftOuter),
#"Expanded max" = Table.ExpandTableColumn(#"Merged Queries", "max", {"max", "min"}, {"max", "min"}),

Super User
Super User

@PowerrrBrrr , there is merge (merge queries)happening in second last step and then in last step column Max and min are added to the current table 

Merge Tables (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!

I dont know what to say to you.. I know that there is merging happening, but as I mentioned in the question, i didnt get how and why the filtering is happening on max columns once for null and then without null and why and how this is getting merged. 

Helpful resources

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors