Forum Discussion

joschultz's avatar
joschultz
Advocate II
10 years ago
Solved

New Measure

    How can I sum one specifice product in a column?  So for instance I have two columns.  One is the product name and the other is the sales.  I need to total the sales just one specfic product in...
  • greggyb's avatar
    10 years ago

    In any sort of visualization that has 'Table'[ProductName] as a legend, row, column, or axis label, that filtering will be done automatically.

     

    If you just need a measure that is filtered by default, use CALCULATE():

     

    SumSpecificProduct:=
    CALCULATE(
        SUM('Table'[Sales])
        ,'Table'[ProductName] = "<specific product name>"
    )