sql server - Retrieve data from cube using several members of the same dimension -


i trying retrieve data cube, problem have need select several members same dimension, among other dimensions cube. tried using member concatenation in mdx query this:

with member  [dimtime].[newdate] [dimtime].[dimtime].properties("day")+" "+[dimtime].[dimtime].properties("month")+" "+[dimtime].[dimtime].properties("year") select non empty{ [measures].[count] on columns, [dimtime].[newdate] on rows [sample] 

but error because using several times dimtime. trying other dimensions values, want retrieve dates. have idea of how this?

what have result this:

expected result

where new_date concatenation of day_month_year, , grouped other dimensions.

thanks in advance.

unsure trying achieve.

in ms's advwrks this:

select    non empty      [measures].[internet sales amount] on columns  ,non empty      [date].[calendar].[date] on rows [adventure works]; 

it gives result:

enter image description here

in advwrks date dimension looks this:

enter image description here

i think need work on cube structure


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -