Forum Discussion

TommyWommy's avatar
TommyWommy
Frequent Visitor
4 years ago

How to Create an column that creates an ID# based on multiple criteria and last instances?

Hi,

I'm relatively new to Power BI, and I'm trying to do something that I'm not even sure is possible.

 

I have a table that is similar to the one below. I am trying to create an ID number for "events". The events always follow the same process in the status column:

 

Step 1 - Engineer Required

Step 2 - Engineer on machine

Step 3 - Repair Complete

 

They are in date order, across multiple machines. Is there a way of creating a unique value for each "event"? 

 

 

MachineStatusDateTime Raised
Machine 1  Repair Complete25/03/2022 15:04
Machine 1Engineer on machine  25/03/2022 15:03
Machine 1Engineer Required25/03/2022 14:57
Machine 2Repair Complete25/03/2022 14:52
Machine 2Engineer on machine25/03/2022 14:52
Machine 1Repair Complete25/03/2022 14:51
Machine 2Engineer Required25/03/2022 14:51
Machine 1Engineer on machine25/03/2022 14:51
Machine 2Repair Complete25/03/2022 14:46
Machine 2Engineer on machine25/03/2022 14:38
Machine 1Engineer Required25/03/2022 14:36
Machine 2Engineer Required25/03/2022 13:51

3 Replies