Here’s a problem I commonly have when designing a universe. I am not sure what design strategy to use to deal with it. Consider a this simplified example:
I have two tables:
Country, with objects Country and Population
City, with objects Country, City and Population.
Both tables are linked on the country field. Of course, each country can appear many times in the City table. Now, ff a user creates a WebI query for population by City, and accidentally includes Population from the country table, he will see inaccurate results - each city will be assigned the population of its country.
How do I design my universe to limit the chances of a user including measures from the wrong table in their queries?
Apart of the Fan trap solution, you can also look for @aggregate function to create your measure objects, which helps in selecting the correct measures based on the dimension selected in query.