Forum Discussion

MIkkelHyldig's avatar
MIkkelHyldig
Helper II
4 years ago
Solved

Add custom column with max date per item in Power Query

Hi, I have the following table 1 where and I need to add a custom column with the latest date per Item No. Table 1 is related to table 2 with Item No and Variant and a date column. When I filte...
  • v-zhangti's avatar
    v-zhangti
    4 years ago

    Hi, MIkkelHyldig 

     

    If you want to generate the maximum date column with power query, you can try the following method.

    Step 1:

    Step 2:

    Step 3:

    The date column of Table 2 establishes a relationship with the MAX column.

    Step 4:

    Is this the result you were expecting?

     

    Best Regards,

    Community Support Team _Charlotte

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.