Hi everybody,
I've got a Fact Data table with a value and 16 dimensions.
Now I want to create a second measure group Color with a value and 3 dimensions.
I've filled this table with values and id's for each dimension.
Bu when I make an mdx query with a measure from the FactData and a measure from the second measure group (Color), only the first measure has a value, the second (the measure from Color) is null.
Is these something I've forgotton to set in the cube?
thanks in advance
Filip
Hi,
If you run a simple query (below) do you get two columns of data in the results?
select {[Measures].[Measure Group 1],[Measures].[Measure Group Color]} on 0
from [Cube]
results:
Measure Group 1 Measure Group Color
123231 123213
If not I suspect something else is wrong, perhaps check that you have set up the joins between the dimensions and the facts correctly. If you do get values in both, perhaps it is worth while posting your query.
Hope it helps,
Matt
|||
Hi,
that query runs.
but I have another problem now, this measure group I've created for storing color information, only can't have a Sum or Count as aggregation.
I cannot see the 65280 or ... value for the color I want to use.
I didn't included a period dimension to this measure group.
Is that the cause?
Filip
|||Hi,
Sorry for delay I was investigating. If the measure is not aggregatable then you will get Null in the measure unless you go down to the granularity in which the data is held at. This is an area not that familar with and finding it difficult to prove.
But if you don't include a dimension in measure and the measures are aggregatable it will not causes nulls to appear, you get funny results. e.g.
select {[Measures].[Measure Group 1],[Measures].[Measure group 2]} on 0,
[Dimension only on measure group 1] on 1
from [cube]
Results:
Measure Group 1 Measure Group 2
dim a 45 1234 1234 being the total in measure group 2
dim b 23 1234
dim c 78 1234
Sorry I could answer it more positively.
Matt
|||thank you for your help!
it works at a certain level.
at the granularity level, it works fine,
but once it starts aggregating, the value 256 becomes a sum of x times 256.
I have to solve that problem...
thansk for you help
Filip
No comments:
Post a Comment