Dax Formula Help! 2 Subcategorys

SRA007

New Member
Joined
Oct 23, 2018
Messages
1
Hello everyone,

First time posting here. Here is my dilemma. I am trying to create a report with a data set like what you see below. (all examples)
CompanyBrandCategorySalesCat Sales
AmazonTurkeyMeat503000
AmazonHamMeat20003000
AmazonBreadBread15002000

<tbody>
</tbody>


In my report, I would like to add a slicer, on Brand but not repeat the Cat Sales column. For instance, If I select Turkey I want it to say 50 sales, 3000 cat sales, If I select Ham and Turkey, I would like it to say (50+2000) Sales and 3000 Cat sales since they are in the same category.

Any help would be greatly appreciated, I am able to restructure the data however I see fit.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Does it need to be a report or a pivot table? If its a pivot table just set Category above Brand in the Hiearchy and allow uses to click the plus sign to break out subtotals within the pivot table.

It would look like this

Sum of Sales Sum of Cat Sales
Meat 2050 6000
Turkey 50 3000
Ham 2000 3000
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,762
Members
449,048
Latest member
excelknuckles

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