> no i just want to aggregate my my data by product name only You told us this within your gist:
// if user selects 13 of december
prod1. 28 times sold 5614 dollar earns
prod2. 1 times sold 20 dollar earns
That still sounds to me that you want to aggregate your data by date at the
first level
(" if user selects 13 of december").
Notice that the index key works from left to right. So, I think you need to
emit the date at first key item.
Of course, I could be wrong!
Olaf
