Forum Discussion

Daxmax's avatar
Daxmax
Icon for Helper I rankHelper I
5 years ago
Solved

Calculate IRR from inception until slicer selection, while other metrics only for that selection

Hello Community,   My report needs to display IRR from inception until the year and quarter selected in the slicer, while the same report has other metrics that display only for the year and quarte...
  • Daxmax's avatar
    5 years ago

    Hi community, i was able to figure out the issue. I had to remove filter context using ALL(), and then use XIRR. 

    My measure is 

     

    measure=
    var quarter = SELECTEDVALUE(table[quarter])
    return CALCULATE(XIRR(.....), ALL(table[quarter]), table[quarter] <= quarter))