Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

SUM column based on distinct ID

Hi all!   I cant seem to figure out the following (which looks very straightforward) I have a dataset which shows how much meter a category has in a store.  The data set has rows for each artic...
  • ERD's avatar
    3 years ago

    Hi Anonymous ,

    You can try this measure:

    meters per store = 
    VAR t = SUMMARIZE ( 'Table', 'Table'[Store ID], 'Table'[Category], 'Table'[Length of Category (in meters)] )
    RETURN
        SUMX ( t, [Length of Category (in meters)] )