Forum Discussion
Smallegrue
6 years agoFrequent Visitor
Referencing rows within same table based on events
Hello all, I've been having trouble with this and I can't seem to figure it out. I have an equipement status table that records a row everytime an equipement status changes or at the end of a...
- 6 years ago
Hi Smallegrue ,
We can create a calculated column to meet your requirement:
Original Failure line ID = IF ( [Status] = "Down", CALCULATE ( MIN ( 'Table'[Row ID] ), FILTER ( 'Table', 'Table'[Row ID] > CALCULATE ( MAX ( 'Table'[Row ID] ), FILTER ( 'Table', 'Table'[Row ID] <= EARLIER ( 'Table'[Row ID], 2 ) && 'Table'[Status] = "Up" ) ) && 'Table'[Status] = "Down" ) ) )
Best regards,
Greg_Deckler
6 years agoCommunity Champion
See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339586
Smallegrue
6 years agoFrequent Visitor
Thanks Greg,
I'll take a look at it! I'll let you know.