How to Filter rows of a table from a table that is not linked with relationship

Hermann01

New Member
Joined
May 6, 2013
Messages
4
Hi, here the problem, can't solve it despite lots of tries, I am struggling in filtering rows of a table from another one that is not linked.

If anybody can find the solution:

I have 4 tables:
- One is named ProductLocationData (ProductID, Country, CycleDate, LocalAttribute)
- The second is named Sales (ProductID, Country, Month, Sales value).
- Both tables are linked to the two tables: Product (ProductID, GlobalAttribute) by the field ProductID and CountryHierarchy (Country, CountryAttribute) by the field Country

My issue is:
I would need to add a column to the table ProductLocationData that sums the Sales values of the table Sales, which correspond for each row to the same product ID, the same Country and for which ProductLocationData[CycleDate] = Sales[month].

I tried multiple things, using Calculate with Sumx and filter, unfortunately have not been able to filter rows of the table Sales from the table ProductLocationData because they are not linked. And I don't want to link them, if possible.

Any idea?

Many thanks
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
ok found it:CALCULATE(SUMX(Sales;Sales[Sales]);Filter( Sales; ProductLocationData[KeyPlans]=Sales[KeyPlans]))
Whre KeyPlans is the combination of Global ProductID + Country + Date
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,579
Members
452,652
Latest member
eduedu

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