Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
joschultz
Advocate II
Advocate II

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 the column.

 

Thank you,

 

Joseph

1 ACCEPTED SOLUTION
greggyb
Resident Rockstar
Resident Rockstar

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>"
)

View solution in original post

5 REPLIES 5
ALeef
Resolver II
Resolver II

I would just create the measure for Total Sales, and then use a slicer to look at a specific product.

Greg_Deckler
Community Champion
Community Champion

Might be a little cleaner to use SUMX:

 

=SUMX(FILTER(InternetSales, InternetSales[SalesTerritoryID]=5),[Freight])

 

This example is from here:

https://support.office.com/en-US/article/SUMX-Function-DAX-9ca68d1f-34cd-4a98-bc5c-36646118811a

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

SUMX() and FILTER() both force single threaded evaluation.

Akahn
Advocate IV
Advocate IV

Hi Joseph,

 

Depending on what you want to do, you have a few options:

 

One option is the calculate function:

measure = calculate(sum[sales],filter(table,table[product]="Product 1"))

 

You could also just take the sum of sales and use a product slicer. Select the product you want to see sales for.

 

Finally, you could use a report-level, page-level, or chart-level filter to only show the specific product you want to see.

greggyb
Resident Rockstar
Resident Rockstar

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>"
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.