mean time between failure
1 TopicMean Time Between Failure
I read Greg_Deckler 's article about MTBF and tried to adapt his DAX to my situation but it doesn't seem to work right. I have over 100,000 assets and need to get the MTBF for them. Some have multiple work orders and some don't so I need to only look at the assets with multiple work orders. Here is the data I'm using. Can anyone give me a hand with the DAX to get this working? I've been stumped for a while now. Here is what I have adapting Greg Deckler's great work: MTBF Measure = VAR __table = 'MTBF' VAR __table1 = ADDCOLUMNS(__table,"__next", MINX( FILTER(__table, MTBF[WORK_ORDER_NO]=EARLIER(MTBF[WORK_ORDER_NO]) && MTBF[ACTUAL_START_DATE]>EARLIER(MTBF[ACTUAL_START_DATE]) && MTBF[JOB_CODE]<>"PM" ), MTBF[ACTUAL_START_DATE] ) ) VAR __table2 = ADDCOLUMNS(__table1,"__uptime", IF(MTBF[JOB_CODE]="PM", 0, IF(ISBLANK([__next]), DATEDIFF(MTBF[ACTUAL_FINISH_DATE],NOW(),DAY), DATEDIFF(MTBF[ACTUAL_FINISH_DATE],[__next],DAY) ) ) ) VAR __repairs = CALCULATE(COUNTROWS('MTBF'),FILTER(ALLSELECTED('MTBF'),MTBF[JOB_CODE]<>"PM")) RETURN DIVIDE(SUMX(__table2,[__uptime]),__repairs,BLANK()) Thanks in advance for any help you can give me.793Views0likes0Comments