How can I make a chart show inventory counts by location but still include items with zero?
Quick answer
Start with a table listing every location, including those with no inventory. Separately group inventory records by location and count the rows, then left-merge those counts into the complete location list. Set missing counts for locations with no match to zero, and build the chart from that summary—not directly from the inventory records. A row count measures records, not necessarily units.
The question, the details, the next step.
A practical checklist
List every location that should appear, including those with no inventory records.
Use matching location keys in the location list and inventory data.
Group inventory by location and choose a record count or quantity-based measure intentionally.
Left-merge the grouped results into the complete location list, keeping that list on the left. [S1]
Set missing counts to 0 and check for one summary row per location.
Build the chart from the completed summary and compare its categories with the full location list.
A few more useful answers
Why use a left outer join here?
It keeps every row from the left table. Put the complete location list on the left and merge the grouped inventory counts into it, so locations without matches are retained. [S1]
What if a location is missing from the complete location list?
Merging counts into that list will not add the missing location. Update the list first if the location should appear in the summary and chart.
Sources
References used for this guide.
- [S1] Merge queries overview: Power Query join kinds learn.microsoft.com · Checked
- [S2] Group or summarize rows in Power Query learn.microsoft.com · Checked
