Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Expand table after merge changes my data

Hello All. 

Please help me with this. It's really strange. I want to get the previous row action date based on entity name and my index.
it was previously sorted Entity name asc, action date desc. Then I add a index. Then I add a substraction which is index - 1. Belowing is the screenshot. 

Then I went to merger, and do as belowing. Everything still fine, the index and subtraction was still match with the action date. 

Here, when I expand the table, I don't know what happened, the order changed so that's not the thing I want. Please help!

Thank you so much 

5 Replies

  • Stachu's avatar
    Stachu
    Community Champion

    What kind of join are you using? Inner or left/right?

    Even though the order is different the actual data should be the same, you can add step ordering in the original order again.

    Also, please consider that once you load the table to DAX the order of the rows is completely irrelevant, so try to avoid implenting any logic that way (again, that's in DAX, M has different behaviour)

    • Anonymous's avatar
      Anonymous
      Not applicable

      Never try table.buffer trust me, that is the most stupid thing I ever found.