Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Customize table totals

Hi! I have a table with manual entry fields and calculated fields based on other fields. The totals are reflecting the field calulation ginving the wrong result. I explained why I need in the bellow...
  • tamerj1's avatar
    tamerj1
    4 years ago

    Anonymous 

    You mean to say that the target is a hard coded calculated column. I'm I right?

    then the Income target measure would be

    Income target =
    SUMX (
        Projects,
        ( Projects[Profit target] + 1 ) * Projects[Spendings]
    )

    And the profit would be

    Profit Target Measure =
    IF (
        HASONEVALUE ( Projects[Project No.] ),
        VALUES ( Projects[Profit target] ),
        DIVIDE ( [Income target], SUM ( Projects[Spendings] ) )
    )