Forum Discussion

Arashi's avatar
Arashi
Frequent Visitor
4 years ago
Solved

How to sum up only different values in a column

Hello, I want to get a measure that sums up the total extension of the store, which should be 98 as per example below, that it sums if it has different values in column "extension". And then if I f...
  • PaulOlding's avatar
    PaulOlding
    4 years ago

    Hi Arashi 

    Here's a measure that follows a similar pattern to others in this thread.  It uses SUMMARIZE to build a table of unique Store and Extention values, then the SUMX aggregates the Extention values from there.

    Max. de Extention = 
    SUMX(
        SUMMARIZE('Table','Table'[Store],'Table'[Extention]),
        'Table'[Extention]
    )

    Used in a matrix you get this