Hi,
Suppose I have following Model Dimension which is formed based on Junk Dimension definition.
|
JunkID |
ModelID |
ModelCode |
ModelTypeID |
ModelTypeCode |
ModelSpecificationID |
ModelSpecificationCode |
|
50 |
50 |
BAO |
2 |
FFCVT |
2 |
F1C1 |
|
53 |
53 |
BGO |
1 |
FFAT |
1 |
FW4A4 |
|
55 |
55 |
NBO |
3 |
FRAT |
9 |
V4A5 |
|
60 |
60 |
NCO |
3 |
FRAT |
9 |
V5A5 |
|
97 |
55 |
NBO |
3 |
FRAT |
11 |
V4A5 |
|
99 |
53 |
BGO |
1 |
FFAT |
13 |
F4A4 |
And In Fact Table Suppose there is data as below...
|
JunkID |
Amount |
|
50 |
5210983 |
|
53 |
9576 |
|
55 |
7994 |
|
60 |
7872 |
|
97 |
4306 |
|
99 |
6519 |
Now my requirement is to make Distinct Count on ModelID. If I makes Distinct Count on DimModel.ModelID then it gives me 5 on every combination in Cube. If I make Distinct Count on FactTable.JunkID then it gives me 6 in places of 5 as above seen data.
Please help, how can I make Distinct Count on ModelID in this situation
Thanks in Advance
Bhudev