Forum Discussion

rahkim's avatar
rahkim
Helper I
4 years ago
Solved

Custom Summary Total in Table Visual

Greetings!   I am using a table visual with three columns (starting and ending dollars, and a percentage of the difference).  I would like to have the percentage at the bottom show the percentage d...
  • TheoC's avatar
    TheoC
    4 years ago

    hi rahkim 

     

    Can you adjust measure to following. I haven't tested syntax. If it does not work, I'll correct in the morning as I am currently on phone.

     

    Measure = 

    VAR _1 = SUMX ( Table , Table[Start Dollars] )
    VAR _2 = SUMX ( Table , Table[End Dollars] )
    VAR _3 = ( _1 - _2 ) / _1

    RETURN

    IF ( _3 = 0 , 0 , _3 )