Summarize two tables with date and item filter

Lars1

Board Regular
Joined
Feb 3, 2021
Messages
154
Office Version
  1. 365
Platform
  1. Windows
Hi

I am struggling, trying to summarize two tables into one table.

a solution in DAX is much appreciated :)

Tabel 1 and Table 2 contains data with date, Item no. and quantity.
i would like to combine and summarize these data in to a new table where quantity is summarized depending on date and Item No.


Tabel 1Tabel 2Result
Starting DateItem NoQuantityShipment dateNo_QuantitýDateItem NoQuantity
01-03-2022​
5566​
10​
01-03-2022​
5566​
10​
01-03-2022​
5566​
20​
02-03-2022​
4455​
12​
+​
03-03-2022​
3344​
14​
=​
02-03-2022​
4455​
12​
03-03-2022​
3344​
14​
06-03-2022​
9911​
10​
03-03-2022​
3344​
28​
04-03-2022​
2233​
16​
04-03-2022​
2233​
16​
05-03-2022​
1122​
18​
05-03-2022​
1122​
18​
06-03-2022​
9911​
10​
06-03-2022​
9911​
20​

1647863167779.png


I´ll hope anyone could help with a solution in DAX

Br.
Lars
 

Attachments

  • 1647863108487.png
    1647863108487.png
    16.6 KB · Views: 5

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
This could be the measure

Excel Formula:
=SUMX(Tabel1;Tabel1[Quantity])+SUMX(Tabel2;Tabel2[Quantity])
 
Upvote 0
This could be the measure

Excel Formula:
=SUMX(Tabel1;Tabel1[Quantity])+SUMX(Tabel2;Tabel2[Quantity])
Hi

Thanks for your solution.

Maybe my description was not god enough...
i would like to combine and summarize these data in to a new table where quantity is summarized on the correct date and Item No.

As i see it, your solution summarizes everything without taking date and item no in to consideration...
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,958
Members
449,096
Latest member
Anshu121

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