Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Sum column value using measure as filter condition

Hi all,   I'm currently trying to sum up the value of a column whenever my measure DisctinctCreativeCount returns a value more than 1. The data is all based on a single table. Since I can't simply ...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous ,

     

    Sorry for the delay.

    Please refer below measure to modify your measure and see if the result achieve your expectation.

    CostOnOneCreative = 
    CALCULATE (
        SUM ( 'BPR_DV360_Mapping'[DBM Cost (Account Currency)] ),
        FILTER (
            ALLSELECTED ( BPR_DV360_Mapping[DBM Line Item ID] ),
            [DistinctCreativeCount] > 1
        )
    )

    Result would be shown as below:

    BTW, Pbix as attached, hopefully works for you.

     

    Best Regards,

    Jay

    Community Support Team _ Jay Wang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.