SUMIFS values between Two Coulmns of Dates In DAX

Omer_K

Board Regular
Joined
Apr 9, 2017
Messages
124
Office Version
  1. 365
Hey All,
I have 2 databases,
First: Contains a column of start date and end date
Second: Contains a column of date and value
I want to find the result in column C in the first database (column of the result) using the DAX function
The sum of the value of all major dates from start date and major from end date.
In Excel it is possible to do this in SUMIFS but how do I do it in the DAX function?

Attaches the example,
Start DateEnd DateResultDateValue
06/04/202011/05/20201,51624/02/202126,092
14/10/202008/11/2020-07/07/201936,990
14/04/201918/05/2019-28/12/202035,586
04/03/201909/03/2019-27/12/201921,272
08/04/202024/04/20201,51613/06/201918,555
10/02/202028/03/2020-20/08/201911,049
11/11/202030/11/202034,87911/08/201930,908
10/11/202010/12/202034,87928/02/202129,489
22/03/202023/04/20201,51620/12/201938,344
02/03/201909/03/2019-26/12/20205,592
19/10/201927/10/2019-01/07/202018,256
27/03/202009/04/2020-04/09/201946,605
27/01/202117/02/2021-19/01/202023,530
04/05/202019/06/202033,68418/12/201948,177
30/01/202110/03/2021100,79825/08/201934,663
08/11/201913/11/2019-02/08/201910,881
16/04/201913/05/2019-18/03/201947,711
23/02/202016/03/2020-13/04/20201,516
25/11/202006/12/202034,87928/07/202044,738
11/12/201931/12/2019107,79304/09/202035,446
31/03/201906/05/2019-29/11/202034,879
21/02/201929/03/201947,71116/06/202033,684
05/06/201940,183
27/02/202145,217

Thank you :)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
=SUMX(FILTER(Table2,Table1[Start Date]<=Table2[Date]&&Table1[End Date]>=Table2[Date]),Table2[Value])
 
Upvote 0
Hey mart37,
Thank you for the answer :)
how i can connection between the two tables - ths dates are reapte in both tables..
 
Upvote 0
When I use the filter function it does not recognize the columns in the first table :(
 
Upvote 0
I have no relation between the two tables.
I used a calculated column.
The empty rows are not visible in a pivot table.
When you want to show the empty rows: =0+SUMX(FILTER(Table1[Result1]Table2,Table1[Start Date]<=Table2[Date]&&Table1[End Date]>=Table2[Date]),Table2[Value])
 
Upvote 0
Dear mart,
You were right about your first answer - you are the Best ?
Appreciate it a lot! ???
Thank you
 
Upvote 0

Forum statistics

Threads
1,223,697
Messages
6,173,894
Members
452,536
Latest member
Chiz511

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