Forum Discussion

Andrew_SSFM's avatar
Andrew_SSFM
Frequent Visitor
7 years ago
Solved

Do not sum certain columns in matrix. Show values based on filter level?

Hello All!   I have some project data coming from two different tables and one of those tables (Project) has values (Fee, Complete) that should not be summed.  All values are attached to a 3-tier w...
  • d_gosbell's avatar
    d_gosbell
    7 years ago

    Actually if you fix the syntax errors in my previous code the same approach will work for both the fee and pcnt (assuming that the row with the blank WBS2 is a total row so it should be shown for the WB1 line and hidden as a WBS2 line

     

    Fee Amt =
    IF( HASONEVALUE(Data[WBS2])
       ,CALCULATE(SUM(Data[Fee]), FILTER(VALUES(Data[WBS2]),Data[WBS2] <> ""))
       ,CALCULATE(SUM(Data[Fee]),Data[WBS2] ="" )
    )