Forum Discussion

Uzi2019's avatar
Uzi2019
Community Champion
3 years ago
Solved

Divide Row value with Sub Total

Hello Expert, I need your help in getting the row subtotal value. I have given the example:     I am not able to get the sub total value through meaure. beacuse i need to divide row value...
  • Tahreem24's avatar
    3 years ago

    Uzi2019 Try this DAX Measure:
    Measure = 

    VAR _Curr = SUM(Table[Spends])
    VAR _All = CALCULATE(_Curr,REMOVEFILTERS(Table[Product]))
    RETURN DIVIDE(_Curr,_All,0)