Forum Discussion

AlBud's avatar
AlBud
Frequent Visitor
3 years ago
Solved

M Query - If Then Else

Hi all,   I'm having trouble with the below in Power Query when creating a new custom coloumn.   if [ATA Final Destination Port] > = [ETA Final Destination Port] then [ATA Final Destination Port]...
  • v-yalanwu-msft's avatar
    3 years ago

    Hi, AlBud ;

    You could try it.

    if [ATA Final] = null then List.Average(#"Changed Type"[Port]) else null

    The final show:


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.