dax formula to show total sold of a particular item

BORUCH

Well-known Member
Joined
Mar 1, 2016
Messages
548
Office Version
  1. 365
Platform
  1. Windows
hi

i have my pivot table set up as follows

i would like to add a column next to the description that would tell me the total sales of apples for all salesman selected in this pivot table how can i get that done ?

Thanks

Sample data.PNG
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
See if this meets your requirements
HTML:
Apple Sales =
CALCULATE (
    [Total Sales],
    KEEPFILTERS ( Fruits[Description] = "APPLES" ),
    ALL ( Employee[SalesPerson] )
)
 
Upvote 0
See if this meets your requirements
HTML:
Apple Sales =
CALCULATE (
    [Total Sales],
    KEEPFILTERS ( Fruits[Description] = "APPLES" ),
    ALL ( Employee[SalesPerson] )
)

Hi thanks for your answer

sorry for the inconvince i miswrote my question, i want it to be based on item number not description so whatever the item number is on column B it should show me total sales

but i dont want to hardcode it in the formula so whatever filters i have set for ex. year month salesperson etc. it shoud show me total sales for that item #

so the final number shoud be total sales for item 1 the only filter it should keep is the salesperson
 
Upvote 0
so just to make it easier what i want i want a new column that would show me by item # 1 total qty sold was 15
 
Upvote 0
Maybe this?
HTML:
CALCULATE (
    [Total Sales],
    ALL ( Employee[Item] )
)
 
Upvote 0
actually i figured it out the correct formula is

Sales Total for each product:=CALCULATE([Total Sales],ALLSELECTED(data[Salesperson]))
 
Upvote 0

Forum statistics

Threads
1,223,789
Messages
6,174,579
Members
452,573
Latest member
Cpiet

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top