Forum Discussion

M001's avatar
M001
Helper I
2 years ago
Solved

Turn column names in M Language defined by variables

Hi there,    I would like to check the data in my latest month column against previous month, and return Y for rows with data in the last two columns not equal   The tricky part is the number of ...
  • slorin's avatar
    2 years ago

    Hi M001 

     

    if List.IsDistinct(List.LastN(Record.ToList(_),2)) then "N" else "Y"

    Stéphane