I am working on a Cognos Report to display a list with Customers and Items that were never purchased by those customers, but I can't reverse the association to find the "excluded" Items.
My relevant tables and relationships are:
Customers 1..1 <--> 0..1 Sales 1..1 <--> 1..1 Items
I have customers A, B and C and products X, Y and Z.
A bought X and Y.
B bought Z.
C never bought anything.
The desired output would be:
___________________
| Customer | Item |
|----------|------|
| A | Z |
| B | X |
| B | Y |
| C | X |
| C | Y |
| C | Z |
|__________|______|
Any out-of-the-box ideas on how to build a query for such report?
Thank you!
You current model won't fit your needs. Try to create a custom "data model" for this query in your report. Go to Query explorer tab in Report Studio and add 3 queries: Customer, Item, Sales
Result is your dataset.