For purposes of this post I will limit this example to one fact table and one dimension table:
- Code: Select all
Table "A"
----------------
B_ID
SOME_VALUE
Table "B"
----------------
ID
SOME_TEXT
The cube is configured such that the fact table is table "A", the measurement is A.SOME_VALUE, and there is a single dimension linked by A.B_ID to B.ID and the displayed value for the dimension is B.SOME_TEXT. The data in table "B" has many more fields and SOME_TEXT on its own is not unique. IOW, this is not a fully normalized database.
When activated the cube displays all records from the fact table where B_ID is unique. Records with the same SOME_TEXT value are not grouped together and are shown separately on their own lines.
However, if I configure the cube to use a single query instead of the star schema with a query such as this:
- Code: Select all
select SOME_TEXT, SOME_VALUE
from A inner join B on A.B_ID = B.ID
... and I configure the measurement to be SOME_VALUE (same as before) and a single dimension to be SOME_TEXT then all records where SOME_TEXT is the same are grouped together. This is the behavior I hope to achieve via the star schema approach.
The database design is not in the control of our company and our software must be able to use the star schema approach to fulfill the requirements.
Is there some property that I must set in order for the cube to group values together in this manner? If not, is there a reason that records are not grouped (aside from performance reasons)?
Thank you for your time,
- Clayton