This will work too, but as I told earlier, you're running two searches here so if the performance is not an issue for you, above will just do the task,.
One problem that you may run with your query is that you're relying on the order of the product (appendcols merges column row by row), so if there is a missing product this week OR new product this week, the results will not be 100% correct. Whereas other query will take care of it.
... View more