I have a data with [Material], [Batch],[Movement Type], [Document Date] and [Time of Entry]. I want to create a column that would show the pattern of movement type according to date.
Raw Data:
For example, Material / Batch – > 9121313 / 00471124 has movement pattern of 101 - 601. The pattern should follow the document date and time stamp. If the earliest transaction is 101, followed by 102 then finally 601, the pattern should be 101 - 102 - 601.
So I want to create a table like this:
How can I do this? This will help me explore the data regarding unusual patterns.
This is almost what is needed for the analysis. The only one missing is that the sequence must follow a pattern according to the date and time stamp. For example, if the earliest transaction is 101 followed by 102 and last transaction is ZS5, then the pattern should be 101 - 102 - ZS5.
This is really helpful when analysing anomalous/unusal transactions. From a visualisation standpoint, I want to show the connections of the movement. Like a chain. I got some promising visualisation tools such as “journey map” or “force directed graph” but kind of lost for now.
Not sure how to attach file in the forum yet. I am so new here.
You can give attached file a try. I extracted columns from your file, merge data & time column to create datetime and use below formula. You may need to test the dax and change a bit to suit your requirements.
Hi @joeyhenry, did the response provided by the contributors help you solve your query? If not, how far did you get and what kind of help you need further? If yes, kindly mark the thread as solved. Thanks!
Thanks @hafizsultan and @EnterpriseDNA. I tried the DAX formula but since I have 6 mio rows, pBI told me I don’t have enough memory to run it. So, I programmed it in power query through another table using the logic a similar logic in the DAX formula that @hafizsultan gave.