Forum Discussion

10 Replies

  • edhans's avatar
    edhans
    Community Champion

    Check out the file attached.

    It returns the following table in Power Query:

    It does it by inserting an Index column first, then getting the previous row by referencing the index value - 1.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks, the result is rigth, ist possible to share the Pbix file to understnad better.

      • v-lionel-msft's avatar
        v-lionel-msft
        Community Support

        Hi Anonymous ,

         

        Or you could do like this:

        First, create a [Index] column in "Edit Queries";

        Second, create a calculated column:

        Column = 
        VAR x = MOD([Index], 2)
        RETURN
        IF(
            x = 0,
            BLANK(),
            [C3]
        )

         

        Best regards,
        Lionel Chen

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

         

    • Anonymous's avatar
      Anonymous
      Not applicable

      Could you please share the file