I have a central store data containing products that were taken out (90% of all) or returned (10% of all) from the last 3 years. I need to do an analysis that will contain the most expensive items (qt * price) taken out in the certain time period minus the items that were returned. I also want to represent this data on a monthly chart (1 Serie = 1 year). Right now I display all of it in a ListView (monthly data is hidden in the list view so when I click on an item it draws a chart to show monthly usage) and everything works great including the chart. What I cannot do is when I use the datetimepickers to narrow down the date ranges it also narrows down my chart results.
My question is: Is it possible to somehow combine 2 queries (one with date range) to display those results and one without it (so it will contain the whole 3 yers) to display on a chart.
Basicaly what I want to do is to use one Listview to display data from selected time period (first 4 columns: PartNo, Name, Quantity, TotalValue) and the rest of the columns will contain usage from 36 previous months (1 column = 1 month) and those columns should not be narrowed with date range.
I hope it does make sense.:)
My question is: Is it possible to somehow combine 2 queries (one with date range) to display those results and one without it (so it will contain the whole 3 yers) to display on a chart.
Basicaly what I want to do is to use one Listview to display data from selected time period (first 4 columns: PartNo, Name, Quantity, TotalValue) and the rest of the columns will contain usage from 36 previous months (1 column = 1 month) and those columns should not be narrowed with date range.
I hope it does make sense.:)