Forum Discussion

PhilippRien's avatar
PhilippRien
New Member
3 years ago

Group by with where clause Power Query M

Hey, assume i have some table like this:

 

I want to get the row (or just the "interessent" like with group by based on the "interessent" column) with the highest date where "Kategorie" is not empty.

 

I started with the group function to get the highest date:

#"LastFilledCategory" = Table.Group(#"FilteredRows", {"Interessent"}, {{"IdOfGroupedBy", each List.Max([Datum]), type nullable datetime}})

But how i can add something like a "where" clause? 

 

Thanks for any hint 🙂

 

2 Replies