Hi,
I have a SQL view which summarises orders by Year and Month and giving a count of orders, eg:
Jan 2019 | 350 Orders
Feb 2019 | 260 Orders
Mar 2019 | 400 Orders
I have a gallery, galleryOrderSummary which uses this sumarised view as its datasource and then a 2nd gallary, galleryOrderDetail, which is filtered based on galleryOrderSummary.. This all works well, so when I select Feb 2019 from galleryOrderSummary, 20 rows are shown in galleryOrderDetail.
However, I would like to offer the users some filters, such as Sales Person and Product, which will filter what is reported in galleryOrderSummary and thereby galleryOrderDetail.
I can change my SQL view to include these new summary levels, so the summarised data would like the following:
Jan 2019 | Andrew | 150 Orders etc
Jan 2019 | Bob | 100 Orders etc
Jan 2019 | Charlie |50 Orders etc
Feb 2019 | Andrew |20 Orders etc
...
..
However I want to keep galleryOrderSummary showing one row per Year / Month as before.
If my filter for Sales Person is not populated, then Jan 2019 will show 350 orders, yet if the user has filtered on Sales Person = Andrew, then the colunt of orders will be 150 in Jan.
Is there a way to set my galleryOrderSummary to be summarised, so that it only ever shows one row Year per Month, even though there may be multiple rows per Year and Month?
Many thanks and hope the above is understandable!
Mark