pivot - Excel PivotTable based on cube - how to split measures based on two members of a dimension -


my cube has sales value.

also item dimension. members of item hierarchy 'cat1' , 'cat2'. cat1 , cat2 can each have variety of different values.

i trying define member based on specific values cat1 , cat2.

the new member used in pivottable columns split sales new member.

"1cup" cat1 = coffee , cat2 in (cup,cup1) "othercoffee" cat1 = coffee , cat2 in (creamer,accessory,box) "allothersales" cat1 = ops , cat2 in (accessory,battery,electronics...and on , on) 

how go this?

if cannot change cube, there no easy possibility create calculated memebrs, except - according this blog post, if have excel 2013. in older excel versions, possibility know install olap pivot table extensions, plugin excel allows add mdx calculated measures can use in query.

assuming have 1 of these possibilities write mdx member definitions, , assuming item hierarchy in dimension dim , 'cat1' , cat2 levels, attributes on based named 'cat1' , cat2 well, , members want define should located in top level, below all member, assume called all (you see have assume lot of details cube , requirements), mdx follows:

for 1cup member, member name [dim].[item].[all].[1cup], , definition be

aggregate({ [dim].[cat1].[coffee] } * { [dim].[cat2].[cup], [dim].[cat2].[cup1] }) 

and similar other members, each new name want use separate member. attribute, mdx define member


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -