I would like to write an MDX query that only show values when a specific repeated dimesions are repeatid more tha one.
That is my mdx query:
SELECT
NON EMPTY { [Measures].[Value] } ON COLUMNS,
NON EMPTY { ([Dim Result].[Sample Number].[Sample Number].ALLMEMBERS
* [Dim Parameter].[IdParameter].[IdParameter].ALLMEMBERS ) } ON ROWS
FROM [Cube]
the result its like that:
Sample Number IdParameter Value
1 3 5
1 4 6
2 3 2
3 4 0
What i want is to get only repeated sample number values like this:
Sample Number IdParameter Value
1 3 5
1 4 6
And remove the other values that are not repeated
Sample Number IdParameter Value
2 3 2
3 4 0
I donĀ“t know how i can do this, it is posible?
I write the next mdx:
SELECT NON EMPTY {[Measures].[Recuento Fact Result]} ON COLUMNS,
NON EMPTY { [Dim Result].[Sample Number].[Sample Number] } ON ROWS
FROM ( SELECT ({ [Dim Parameter].[IdParameter].&[420] , [Dim Parameter].[IdParameter].&[20] } ) ON COLUMNS
FROM [cube])
the result is that:
Sample Number Recount Fact Result
1 1
2 2
3 2
4 1
What i want is get only the Sample number where the recount is biger than 1
thanks for your help
My approach would be to create a calculated member which would hold number of distinct non-empty members per
SampleNumber
. Then filter out those tuples where the above count is not greater than 1.UNTESTED (not near my system)