Creating a nested report – defining the master-detail relationship
Users want to see product lines, products, and corresponding unit costs. For every product, they also want to see the trend of sales over the last year.
We need to produce a list report with the required information and nest a line chart within it to show the sales trend.
Getting ready
Create a simple list report based on the Sales (query) namespace. Pull Products / Product line, Products/Product and Sales fact / Unit cost in the list.
How to do it...
To complete this recipe, we need to create a relationship between the list report created and a chart report that will be embedded into it. We can do this by defining a master-detail link between them.
We already have a list report that shows the product lines, products, and corresponding unit costs. Please make sure that appropriate sorting and aggregations are applied to the columns.
Now we will add a nested Chart object to show the sales trend for each product.
Drag a new Chart object...