Join 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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I am having some difficulty calculating the measure total. I have a list of multiple promotions. The goal is to calculate the total sales 30 days after the promo end date. I have the row level working, but the total only shows the row value for the MAX date.
Any ideas on how I can get this to work?
Current DAX:
| Current Result | ||
| Promo Name | Promo End Date | Total Sales 30 days After |
| Promo 1 | 4/30/2019 | $458,664 |
| Promo 2 | 8/31/2019 | $262,729 |
| Promo 3 | 5/31/2020 | $6,488 |
| Promo 4 | 9/30/2020 | $21,360 |
| 21,360 | ||
| Desired Result | ||
| Promo Name | Promo End Date | Total Sales 30 days After |
| Promo 1 | 4/30/2019 | $458,664 |
| Promo 2 | 8/31/2019 | $262,729 |
| Promo 3 | 5/31/2020 | $6,488 |
| Promo 4 | 9/30/2020 | $21,360 |
| $749,241 |
Solved! Go to Solution.
I figured out a solution for my issue.
I was able to create another measure and using SUMX referenced the first measure. Thanks!
I figured out a solution for my issue.
I was able to create another measure and using SUMX referenced the first measure. Thanks!
Try first calculating your promo date as a variable up front.
Current DAX:
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thanks. I tried that but it still returns the value for the last date and not the Sum.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 51 | |
| 47 | |
| 29 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 88 | |
| 73 | |
| 39 | |
| 26 | |
| 24 |