Hello,
I have monthly sales data by item for 12 months. Some items do not have any sales data in every month. My raw data source omits these months and skips over them. However, I need to show these months/item as ZERO for that month.
Some conditions that are always true:
1. For any month in the 12 months, there will always be some items sold (no month will be zero across the board).
2. Each item should have a data point for each of the 12 months (some months will have to be filled in at zero).
I have attached some screenshots of my saw data and desired output. The rows in yellow would be created by power query.
My initial thoughts would be to create two new tables and combine. First table being the list of months and the second being the list of items and create a merged table of months and items to then lookup the quantities in the original dataset, returning zero if no quantity exists. Just not sure now to go about it.
I have monthly sales data by item for 12 months. Some items do not have any sales data in every month. My raw data source omits these months and skips over them. However, I need to show these months/item as ZERO for that month.
Some conditions that are always true:
1. For any month in the 12 months, there will always be some items sold (no month will be zero across the board).
2. Each item should have a data point for each of the 12 months (some months will have to be filled in at zero).
I have attached some screenshots of my saw data and desired output. The rows in yellow would be created by power query.
My initial thoughts would be to create two new tables and combine. First table being the list of months and the second being the list of items and create a merged table of months and items to then lookup the quantities in the original dataset, returning zero if no quantity exists. Just not sure now to go about it.