I’m trying to create a slow moving inventory rerport. One query has products with inventory >0 and another with products that have had sales in the last year. I want a report that has the products with no sales. Sounds so easy. Thanks.
Merging dimensions will not do this for you (unlike in Full Client). You’ll need to use either a subquery or a combined (Minus) query.
Check out http://help.sap.com/ to get the Documentation on these topics.
Create Query 1 to list all colors - there should be 209
Create Query 2 to list all colors with sales - there should be 203
So I want a list of colors with no sales,
Create a block with the merged dimension for color and the sales
Create a block filter where the sales are null and your list should show the the 6 colors without sales Color_query.wid (52.0 KB)
Thanks for the help. I was hoping for an easier solution, but I created a subquery and it has been running for about 2 hours. I am going to try and attached the sql maybe you can see something that’s causing a problem. Thanks! Inventory_no_sales_6_months.xls (20.0 KB)
I don’t know what a query plan is:?: Anyway now I’m scared to run it anymore. I better check with the DBA’s. If I try and use a Combined minus query, don’t I need to have all the same objects in both queries? If so, I can’t use this type of query because some objects are not in the 2nd query (or sub query).
Well I tried Jemstar’s approach and it did work (thanks Jemstar!). But… It seems that one always has to have the filtering object in the report for this to work. This seems to be a limitation of this approach. I’m going to check with my DBA’s to see if the “Query Plan” is not allowing me to run the sub query. Thanks!