Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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
Solved! Go to Solution.
Here is the solution I found. If you want get previous row value(in a certain sort) try this.
Refer to Previous Row for Subgroups in Power Query - YouTube
you would need to add the step after expanding.
As for the previous row, here is a good method of achieving that:
Here is the solution I found. If you want get previous row value(in a certain sort) try this.
Refer to Previous Row for Subgroups in Power Query - YouTube
Never try table.buffer trust me, that is the most stupid thing I ever found.
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)
Hi @Stachu,
Thanks for replying me. I was using Left join. I've tried to add step between merge and expand. However, it seems like not working. My goal is to calculate the duration of each step in that sequence. So, I came up with get previous row value then calculate the duration.
you would need to add the step after expanding.
As for the previous row, here is a good method of achieving that:
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 8 | |
| 7 | |
| 7 |