Forum Discussion

ToreVingare's avatar
ToreVingare
Frequent Visitor
6 years ago
Solved

Process mining gaps and islands

Hello!    I'm working on a process mining dashboard at my hospital. I have created all the timestamps that happens to our patient in the patientgroup but I can't succeed with the creation of a ID f...
  • Greg_Deckler's avatar
    6 years ago

    ToreVingare - OK, this was far easier than I thought it would be. But, it is a 2 step process:

    Consequective = 
        VAR __Previous = MAXX(FILTER('Table (3)',[Person]=EARLIER([Person]) && [End]<EARLIER([Start])),[End])
    RETURN
        IF(ISBLANK(__Previous) || ([Start] - __Previous)*1. < .000695,1,0)
    
    
    Group = COUNTROWS(FILTER('Table (3)',[Person]=EARLIER([Person]) && [Start] <= EARLIER([Start]) && [Consequective]=0))+1

    Those are columns. Attached a PBIX file below sig. Table (3).