Adding a dimension

  • Hi,

    I have a dimension table like

    Dimension table name : ReportCodesDim

    Columns: Id, Name, Discription, ParentId

    Sample Data:

    1 Product Products Null

    2 Product1 Product1 1

    3 Product2 product2 1

    4 Region SalesRegions Null

    5 SouthIndia SouthIndia 4

    etc...

    Here i wish to create dimensions that has parent value null....

    Please suggest.

    Thanks,

    Suresh.

  • In your Data Source View you could create a named query, based on that table, with a "WHERE ParentID IS NULL" clause, then build your dimension off of that.

    - Cindy

    suresh.muppidi (2/9/2011)


    Hi,

    I have a dimension table like

    Dimension table name : ReportCodesDim

    Columns: Id, Name, Discription, ParentId

    Sample Data:

    1 Product Products Null

    2 Product1 Product1 1

    3 Product2 product2 1

    4 Region SalesRegions Null

    5 SouthIndia SouthIndia 4

    etc...

    Here i wish to create dimensions that has parent value null....

    Please suggest.

    Thanks,

    Suresh.

Viewing 2 posts - 1 through 1 (of 1 total)

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