ssas - MDX Query to return data from the same Measure in different columns -


i have mdx query running againts ssas cube looks this

select non empty crossjoin([a].[b].[c], [a].[b].[d], [a].[b].[e]...) on rows, [measures].[balance @ year end] on columns [finance] [date].[fiscal].[year].&[2015] 

and returns list of departments hierarchy , year end balances.

i trying add balance @ end of 2014 , 2013 columns in same table , can't seem figure out correct syntax that.

where {[date].[fiscal].[year].&[2015],[date].[fiscal].[year].&[2014],[date].[fiscal].[year].&[2013]} 

returns me summed column. using sql server management studio run queries , later plan put excel using hack http://blog.crossjoin.co.uk/2009/12/18/binding-an-excel-table-to-the-results-of-an-mdx-query/

thanks

so i've found way work doing crossjoin on balance columns.

 crossjoin([measures].[balance @ year end],{[date].[fiscal].[year].&[2016],[date].[fiscal].year.&[2015],[date].[fiscal].[year].&[2014]}) on columns 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -