Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi team,
Need help in figuring out the dax to calculate the sum of values for a given merchant with the start and end date.
There are sales ouside the start and end date but need to caluclate only cummulative sales for the below 3 promo dates.
so for merchant 5032917, the value should be $37000.
| Merchant | start | end | value |
| 5032917 | 10/01/2023 | 21/01/2023 | 15000 |
| 5032917 | 1/03/2023 | 28/03/2023 | 12000 |
| 5032917 | 5/02/2023 | 26/02/2023 | 10000 |
Solved! Go to Solution.
Hi @SachinFG
'Date' is a disconnected table
Sales Amount =
SUMX (
FILTER (
SaLes,
Sales[Start] <= MAX ( 'Date'[Date] )
&& Sales[End] >= MAX ( 'Date'[Date] )
),
Sales[Value]
)
If 'Date' is connected then try
Sales Amount =
SUMX (
FILTER (
ALL ( SaLes ),
Sales[Start] <= MAX ( 'Date'[Date] )
&& Sales[End] >= MAX ( 'Date'[Date] )
),
Sales[Value]
)
Hi @SachinFG
'Date' is a disconnected table
Sales Amount =
SUMX (
FILTER (
SaLes,
Sales[Start] <= MAX ( 'Date'[Date] )
&& Sales[End] >= MAX ( 'Date'[Date] )
),
Sales[Value]
)
If 'Date' is connected then try
Sales Amount =
SUMX (
FILTER (
ALL ( SaLes ),
Sales[Start] <= MAX ( 'Date'[Date] )
&& Sales[End] >= MAX ( 'Date'[Date] )
),
Sales[Value]
)
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |