Forum Discussion
Counting Not Occuring
- 1 year ago
I've deleted all the slicers from the page, now the aggregation is coming through 🙂
To count items that don’t occur in another table in Power BI, use a measure that identifies rows in one table without matching related rows in the other. This typically involves checking which keys from the main table are missing in the related table. Make sure your data model has the correct relationships set up between tables - this is crucial for accurate results. For example, if you want to find products with no sales, the measure will count products whose IDs don’t appear in the sales table. You can also handle cases where related values are blank or missing using conditional logic in your DAX formulas. This approach helps track gaps like unsold products, customers without orders, or missing events in your data.