Forum Discussion

Ncf5031's avatar
Ncf5031
Icon for Advocate I rankAdvocate I
3 years ago
Solved

Subtract Row Value From Table Row Count - KM Survival Curve

Needing help with two seemingly simple issues.    First, the goal of this analysis is to peform a KM Survival Analysis. I have searched here and the articles pertaining to that analysis don't quite...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Ncf5031 ,

     

    Please try this measure:

    ALIVE_AT_TIME = 
    VAR __EQUIP_HRS = MAX('FAILURES'[EQUIP_HRS])
    VAR _Count_1 = CALCULATE(COUNTA('FAILURES'[EQUIP_HRS]),'FAILURES'[EQUIP_HRS]>=__EQUIP_HRS)
    VAR _Count_2 = COUNTBLANK('FAILURES'[EQUIP_HRS])
    VAR _Count_3 = IF(ISBLANK(__EQUIP_HRS),_Count_1+_Count_2,_Count_1)
    VAR _Result = _Count_3 - [FAILURE_AT_TIME]
    RETURN
    _Result

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly -- How to provide sample data