I am currently working in Power Query and trying to determine a specific field to output based on multiple conditions.
I have a table as follows:
What we can see is that we have multiple rows per order und 2 status keys. I need to determine that MAX Date based on this logic per item:
As we can see, each type has a specific key combination to get the MAX Date. The result would be like this:
Is there any alternative to a very long IF Clause? There are 7 Product types in total each with specific key combinations.
How would you do that? In Power Query.



