Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Calculate difference DISTINCT COUNT between rows

Hi everybody,    I've matrix in this format and I'd like to calculate difference between rows.  Meaning: Nurture = blank Qualify = Nurture - Qualify Validate = Qualify - Validate  etc.   Cur...
  • parry2k's avatar
    parry2k
    6 years ago

    Anonymous the way I see it something like this, add following measure

     

    Measure = 
    VAR __currentIndex = MAX ( Table[Index] )
    VAR __prevIndex = __currentIndex - 1
    RETURN
    CALCULATE ( <<Your Measure>>, Table[Index] = __prevIndex )

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.