Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Transaction Date | Quantity |
---|---|
1/1/2013 | 1000 |
1/10/2013 | 500 |
2/5/2013 | 1200 |
2/20/2013 | 700 |
3/13/2013 | 300 |
3/18/2013 | 900 |
3/25/2013 | 500 |
4/3/2013 | 200 |
4/16/2013 | 500 |
4/24/2013 | 800 |
4/30/2013 | 500 |
I hope I understood your requirements correctly. See attached qvw.
Thanks Gysbert,
The logic is really good, but the thing is i have more dimensions apart from just date, so if I merge AsofDate with each parameter, the table will be too huge.
The count for the dimensions are
Item - 1 million.
Months - 48
Salesperson - 200
Divisions - 20
I hope you understand what I want to say.
Do you think creating a table will be better then using the logic suggested by you in script?
Thanks again for a wonderful logic.
Regards,
Kaushik Solanki
I don't think you need to merge AsofDate with each parameter, only with the date field. In the example I joined the AsofDate with the main table, but that is not really necessary. You can simply keep it as a separate table linked to the data field.
If you have 48 months then I assume that means about two years. That would mean about 730 unique date values. The AsofDate table would at contain at most (730^2+730)/2 = 266815 records. That's not all that large. And it will compress quite nicely since there are only 730 unique values.
If you add the dimensions to your chart then you should get the correct results from the expression for the dimension combinations.