
Business Intelligence with MicroStrategy Cookbook
By :

In Chapter 3, Schema Objects – Attributes, we learned how to build filters on attributes to restrict the data returned from the data warehouse using a list of elements. Similarly, we can create filters using values of metrics. The difference—as said—is how the SQL sentence will be generated when applying the filter: attribute filters appear in the WHERE
clause, while metric filters appear in the HAVING
clause. For those of you SQL superstars, I do not need to explain that WHERE
restricts before aggregation, while HAVING
restricts (of course…) after aggregation.
In the previous recipe we added a new fact table. Before we go on, we should specify the Product
FK so that MicroStrategy can JOIN
the FactResellerSales
table with the Product
dimensions. We see from the database ER diagram that FactResellerSales
has a ProductKey
column that points to the DimProduct
table.
So, open the Product attribute (double-click) and modify the ID form to include FactResellerSales...
Change the font size
Change margin width
Change background colour