Forum Discussion
Grouping
- 3 years ago
Hi Sedos101 ,
please check the solution in the file attached.
Please see link to download CSV example
https://1drv.ms/u/s!AmQ0-fnxPpEChh-3s3DR9i_WcWqS?e=Z1jauJ
I Apologise as I realised my explanation has not been very good. Please see below hope it explains my dillemma better.
I have a table in Power BI which contains a column called “Cycle State”. There are basically 7 states of a cycle which are sequentially as follows:
- Loading
- Fully Loaded
- Stopped Loaded
- Traveling Loaded
- Dumping
- Traveling Empty
- Stopped Empty
The data I am looking at is second by second data log files coming of the trucks. So for every second it records what state of the cycle it is in. Each complete cycle (From Loading to Stopped Empty) varies in the number of rows as it depends on how long it took to complete each cycle state. For example a complete cycle could look like:
Loading |
Fully Loaded |
Stopped Loaded |
Traveling Loaded |
Dumping |
Traveling Empty |
Stopped Empty |
Or
Loading |
Loading |
Loading |
Fully Loaded |
Stopped Loaded |
Traveling Loaded |
Dumping |
Dumping |
Dumping |
Traveling Empty |
Traveling Empty |
Stopped Empty |
Is there a way I can basically group each one of these cycles and name them with a number that increases sequentially, for example the first example would be cycle 1 and the second example could be cycle 2? (Basically the new cycle will start once Loading has recommenced after Stopped Empty has occurred)
Thanks for your help
Please use this data set instead, I have labelled 3 cycles from the start to the end.
https://1drv.ms/x/s!AmQ0-fnxPpEChiGMWl4UyDwsZHhJ?e=B0cMJw
Thanks again!