Simple DAX two-filter question

ramohse

Board Regular
Joined
Sep 30, 2013
Messages
50
Hello!



I have a monthly contractor (vendor) report table that includes the following columns: Cost Center, Vendor Number, Amount Spent; I have a relationship with another table that links the cost center to a parent business unit. How would I write a DAX measure that sums the amount spent on each vendor by each business unit?

I can do grand total spent on each vendor:
=CALCULATE(SUM(TotalVendorLook[Amount]),ALLEXCEPT(TotalVendorLook,TotalVendorLook[Vendor #]))

but any time I try to filter the total amount spent by vendor BY parent business unit I get either an #ERROR or a sum of ALL the values, which ends up being much higher than the amount spent.


I am extremely new to all of this, and appreciate your help and patience.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi ramohse,

I would add a column to your vendor report table with a simple VLOOKUP, showing the Parent Business Unit. Then you could use either a pivot table or a SUMIFS formula to get your totals. I hope that does the trick, if not, please post a link to a dummy file (on google drive/skydrive/dropbox).

Cheers,

Koen
 
Upvote 0

Forum statistics

Threads
1,223,983
Messages
6,175,777
Members
452,668
Latest member
mrider123

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