Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have a table ('M Jobs') with job reference numbers ([DeptJobNumber]), Job Events ([JobEventDescription]) and Event Times ([JobEventDateTime] which holds the lifecycles of jobs identified by Events and their timestamps.
I also have a list of specific event strings, which I need to use to identify the last occurance of each of these events prior to the job being completed (the "Practically Complete" event).
For Example, a job starts it's life once it has been "ENTERED" and is being measured until it hits the "PRACTICALLY COMPLETE" event.
I need to pull the last occurance of a listed event prior to the job being completed.
In the example below, we can see that the last listed event prior to the job being "Practically Complete" (10/01/2020 16:24:59) was "Gas No Access NTI" (10/01/2020 15:55:38).
I would therefore need to pull this event and time along with the job number, start date and completion date.
I have attempted to do this by creating a summarised table but I am still not getting the correct results (see below). I have attempted to use || to define the specific strings but the query fails when trying to convert the string to a boolean.
Please, can someone help me out with this as I'm having a nightmare!!
Summary Table
Specific Events List
Jobs & Events Table
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 |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 30 | |
| 23 |