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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear all,
I am stuck with an issue with my data and not sure how to proceed.
I have a table with all projects and in this table we capture monthly snapshots related to sales , budget. I have created measures using SUMX function an example below
| Date | Project | Sales local | Sales Hard |
| April | A | 63 | 100 |
| May | A | 0 | 100 |
| PBI report when applying date filter to May | |||
| Date | Project | Sales local | Sales Hard |
| May | A | 63 | 100 |
Solved! Go to Solution.
Hi @jalaomar It might be because SUMX aggregates across rows without proper filter context. Modify your measure to explicitly filter by the current date for example like CALCULATE([Sales Price], TABLE[Date] = MAX(TABLE[Date])). Ensure the Date field is included in the visualization or model filters.
Hi @jalaomar
The issue comes from the way your measure is written:
SALES PRICE = SUMX( VALUES(Table[Project]), [Sales Price] )
Here [Sales Price] doesn’t respect the date filter, so when a month has no data (e.g. May), Power BI still pulls values from earlier months, which makes totals look wrong unless you apply a project/date filter.
Could you please try below steps:
Make sure your measure is constrained by both Project and Date. For example:
Sales Price =
CALCULATE(
SUM(Table[Sales_Price]),
KEEPFILTERS( VALUES('Date'[Date]) )
)
If your Date table isn’t directly related to the snapshot column, use TREATAS:
Sales Price =
CALCULATE(
SUM(Table[Sales_Price]),
TREATAS( VALUES('Date'[Date]), Table[SnapshotDate] )
)
Also check your visual: turn off “Show items with no data” if you don’t want blank months to display.
Hi @jalaomar,
Thanks for reaching out to the Microsoft fabric community forum.
From what you’ve described, it seems the problem is related to how the SUMX measure is iterating over the list of projects, especially in months where no data exists for some of them. Power BI doesn’t automatically exclude projects just because there’s no data for the selected month, if those projects exist in the model or relationship structure, they’ll still be evaluated, and the measure might end up pulling values from a previous period if the logic allows it.
This would explain why you’re seeing values like 63 for Project A in May, even though your underlying data clearly shows a 0. When you filter down to just that specific project, the context becomes more focused and behaves as expected but when looking at the full list of projects, Power BI may still iterate through others and apply unexpected context from earlier months.
One thing worth double-checking is how the [Sales Price] measure is written. If it doesn’t explicitly filter for the current month or doesn’t handle missing data carefully, it might return values from other periods. Also, consider whether the data model includes all months and all project-month combinations, even if they have 0 values. If some rows are missing entirely, Power BI can't filter on what's not there.
As a next step, I will recommend you to:
* Verify that the [Sales Price] measure respects the current date/month context.
* Also check if your data source includes zero rows for all project-month combinations.
* Or you can modify the measure to ensure it returns blank instead of carrying forward values from previous periods.
I would also take a moment to thank @Akash_Varuna, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference
If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.
Community Support Team
If this post helps then please mark it as a solution, so that other members find it more quickly.
Thank you.
Hi @jalaomar,
As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.
If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.
If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
Thank you for your patience and look forward to hearing from you.
Hi @jalaomar,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution so that other community members can find it easily.
Thank you.
Hi @jalaomar,
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @jalaomar It might be because SUMX aggregates across rows without proper filter context. Modify your measure to explicitly filter by the current date for example like CALCULATE([Sales Price], TABLE[Date] = MAX(TABLE[Date])). Ensure the Date field is included in the visualization or model filters.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 44 | |
| 40 | |
| 29 | |
| 19 |
| User | Count |
|---|---|
| 200 | |
| 130 | |
| 102 | |
| 72 | |
| 55 |