Granularity of Fact table
2 posters
Page 1 of 1
Granularity of Fact table
Hi All,
I am little bit confuse while putting the metric column in fact table ..
let say ..I've following metrics with hierarchy of Location --> District---> region and Week---> Month-->YTD
Report Layout
Metric 1 This Year Value Last Year Value %Value Point based on %
Metric 2 Result Value Grade based on Result
Metric 3 TY LY BSP Points based on %
......................................................
.....................................................
I've planned to design the table as flat ..
Metric 1 _ This Year Value
Metric 1 _ Last Year Value
Metric 1 _ %Value
Metric 1 _ Point based on %
Metric 2 _ Result Value
Metric 2_ Grade based on Result
Metric 3_TY
Metric 3_LY
Metric 3_BSP
Metric 3_Points
..................
.......................
Pls suggest your thoughts ..
I am little bit confuse while putting the metric column in fact table ..
let say ..I've following metrics with hierarchy of Location --> District---> region and Week---> Month-->YTD
Report Layout
Metric 1 This Year Value Last Year Value %Value Point based on %
Metric 2 Result Value Grade based on Result
Metric 3 TY LY BSP Points based on %
......................................................
.....................................................
I've planned to design the table as flat ..
Metric 1 _ This Year Value
Metric 1 _ Last Year Value
Metric 1 _ %Value
Metric 1 _ Point based on %
Metric 2 _ Result Value
Metric 2_ Grade based on Result
Metric 3_TY
Metric 3_LY
Metric 3_BSP
Metric 3_Points
..................
.......................
Pls suggest your thoughts ..
dwh.arvind- Posts : 4
Join date : 2012-10-25
Re: Granularity of Fact table
Usually, last year, last month, etc... values are obtained by a second query to the fact table using the date dimension to locate the values. But if you only need last year and that value is static it probably doesn't hurt to store in the current year row. It makes fact loading a little bit more complex, but will speed queries.
Percentages, however, are usually calculated on the fly rather than stored in the fact, as they tend to be non-additive measures.
Percentages, however, are usually calculated on the fly rather than stored in the fact, as they tend to be non-additive measures.
Similar topics
» Granularity - One Fact Table or Two
» Defining the granularity for a Fact Table
» Is it necessary to have define granularity for a factless fact table?
» Aggregate Table Granularity
» How to create fact table with measures derived from comparing two fact table rows
» Defining the granularity for a Fact Table
» Is it necessary to have define granularity for a factless fact table?
» Aggregate Table Granularity
» How to create fact table with measures derived from comparing two fact table rows
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum