Forum Discussion
Issue with data wrong on row level when no filter applied but correct when applying filter
- 1 year ago
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,
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.
- Anonymous1 year agoNot applicable
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.- Anonymous1 year agoNot applicable
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.