Forum Discussion

Alirezam's avatar
Alirezam
Helper V
5 years ago
Solved

Subtracting the rows in Query based on a specific column

Hi guys, I want to make this change in Query and not on the table in Desktop view: I have a table as attached here, it has multiple values in "Point Name" columns, I need to subtract the "Point Val...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Alirezam 

     

    Add an index from 0, then create the following custom column, and remember replace error and change data type.

    if ([Meter] = #"Added Index"{[Index]+1} [Meter]) then ([Reading]-  #"Added Index"{[Index]+1} [Reading]) else ""

     

    Check attached pbix for detail.

     


    Paul Zheng _ Community Support Team
    If this post helps, please Accept it as the solution to help the other members find it more quickly.