Hi,
I am connecting a cube to another reporting system and i need to show the id of member resulting of a query.My first thought was to use this kind of code (bellow) however when i do the same thing with many dimension (many cross join ),it slow down a lot my query.So how can i have in the same DImension member showing a description and id ? I also have a lot of statement,so i can't have just two columns in the dimension or i will need to duplication the mdx and i could drop down the performance.
So i am trying to get as a result
Dim1 | Dim2| Dim3| Measure
150 3225.2
and also be able to get
Dim1 | Dim2 | Dim3 | Measure
NameElement1Dim1NameElement50Dim2NameElement32Dim325.2
Thanks in advance
with MEMBER [Measures].[IdElement] as
<element>.currentmember.properties("KEY")
select
{
CROSSJOIN({[Measures].[IdElement]},{[METRIC].[Description].[All]}),
CROSSJOIN({[Measures].[value]},{<listmetricmdx>})
} on columns,
{
(
<pointofview>
<element_and_function>
<TimeBreakdown>
)
} on rows
<list_filter_clause>
')
) as list
where ((ElementName is null AND IdElement=0) OR (ElementName is not null))
<list_condition_metric>
but i have multiple