SSAS: Count distinct of field in fact table verses count of rows of dimension table

已答覆 SSAS: Count distinct of field in fact table verses count of rows of dimension table

  • Tuesday, February 28, 2012 6:49 PM
     
     

    Which version of the same measure would result in faster querying from resulting cube (or would they have the same query speed)?

    Define the measure as a count distinct of <FactX> in the fact table.

    OR

    Create a dimension table with a primary key of <FactX>, and define the measure as a count of rows of this table.

    Note: <FactX> has many levels: Count(Distinct FactX)/Count(*) ~ .8

All Replies