Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Distinct Sum By

 

 

 


1. The above is a denormalized table.

2. The grain of the table is Case Number and Line Number

3. I would like to do a SUM of weight BY distinct values of (Case Number and Line Number) to avoid double counting.

 

Can someone help me with a DAX formula which can give me the right SUM which is 263 (without double counting 15)

 

Thanks

Rohit

 

  • Anonymous ,

     

    You can use something like:

    Measure:

    SUMX(SUMMARIZE(TABLE, [CASE NUMBER], [WEIGHT]), [WEIGHT])

1 Reply

  • camargos88's avatar
    camargos88
    Community Champion

    Anonymous ,

     

    You can use something like:

    Measure:

    SUMX(SUMMARIZE(TABLE, [CASE NUMBER], [WEIGHT]), [WEIGHT])