Forum Discussion
Anonymous
2 years agoNot applicable
Calculating Mean Time Between Failure
@Amit, @Greg , @tamerj1 , @lbendlin @amitchandak , @olgad , @Sahir_Maharaj , @FreemanZ , @tamerj1 , @Greg_Deckler @christinepayton @audreygerred LukeB, Hello PowerBI expert folks, ...
Anonymous
2 years agoNot applicable
Hello lbendlin ,
This is way too complicated. I don't even use the M-Query or the Advanced Editor. Can you suggest a DAX formula for this?
Thanks,
lbendlin
2 years agoSuper User
MTBF DAX =
var b = MAXX(OFFSET(-1,ALL('Table'),PARTITIONBY([Equipment]),MATCHBY([BreakDownDate])),[BreakDownDate])
Return if(not ISBLANK(b),[BreakDownDate]-b)
- Anonymous2 years agoNot applicable
Hello lbendlin
The code above is not working--It is giving error like below:
The error is mainly in regards to using PARTITIONBY and MATCHBY Commands. Do I need to write 'Table'[Equipment] since Table is a data table and Equipment is a column variable inside of that data table? Can you please suggest a better working code.
Thanks,