How to filter a Dimension on the base of other Dimension

  • Hi.

    I have 2 different dimensions, Dim_DataBase and Dim_Doctor. If i select any database name from Dim_Database so it must list down those doctors which exists in the selected Database dimension under Dim_Doctor. Instead it shows all doctors which exists in the Dim_Doctor. How can i tackle this issue? Any idea?

    /Nave

  • Something is wrong in your scenario.

    Dimensions are supposed to describe Factual attributes so you shouldn't be doing a query in Dimensions alone.

    Usually you query Factual tables while using related Dimensions to filter what you want and describe what you get.

    _____________________________________
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at Amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
  • I sugest that you build a reporting services report with the database and doctor dimensions specified as being parameters for the dataset. Reporting Services usually generates MDX that makes values shown for the second parameter dependent upon a (user) selection from the first parameter. Once you have the report, checkout the MDX generated and, hopefully, you will be able to apply the equivalent logic to your code.

  • Unless these dimensions are directly related to each other and have a relationship established in the dimension usage of the cube, you would need to filter the dimension based off a measure group. Usually the dimensions are tied to a measure group (fact table) and then you can filter the dimensions based on this relationship.

    ----------------------------------------------------------------------------------------
    Dan English - http://denglishbi.wordpress.com

  • Yes i think so too. I have tried it by using reporting services and seems quite easy to work with.

    /Nave

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply