Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How to show true or false between row

Hi all,   Here is my data   Prod Order Date Completed Balance 100002720443 10/7/2023 262.5   100002720443 11/7/2023   32 100002620776 12/7/2023 31.5 11.1   My expecta...
  • v-yanjiang-msft's avatar
    3 years ago

    Hi Anonymous ,

    According to your description, here's my solution.

    Add a custom column:

    if List.Count(List.Distinct(Table.SelectRows(#"Changed Type",(x)=>x[Prod Order]=[Prod Order])[Date]))>1 then "warning" else null

    Get the correct result:

    I attach my sample below for your reference.

     

    Best Regards,
    Community Support Team _ kalyj

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