I am trying to create a star schema to analyze rankings on universities.
I created star schema which is at the below;
fact table;
Ranking
the dimensions and hierarchies;
University_id
time_id
classification_id
I want to write a MDX query that lists the top-5 universities in California in terms of Computer Engineering in 2011. The result should consists of university name and it's rating.
Here is my MDX query;
SELECT Measures.ranking ON COLUMNS
HEAD (ORDER ({[University_id].[California].[Members].[Children],
Measures.[ranking], BDESC, 5}) ON ROWS
WHERE (Measures.[ranking], [Time_id].[Year].[2011], [classification_id].[engineering]. [computer Engineering])
Is my design of Star schema and my relevant mdx query correct and efficient? Otherwise how can I improve my solution or make it correct? I also created the star schema therefore we can change it to improve the design.
The general idea is fine. Some remarks, however:
WHERE
clause).BottomCount
.