ssas - Sum Specific Columns for Select Statement -
i'm new ssas , mdx , trying concept of it. need please.
i have booking fact table , want number of passengers market specific booking year , departure year , each departure year want total columns. can't figure out how aggregate these columns one.
here code right now:
select { (crossjoin([dep date].[calendar year].&[2012],[book date].[calendar year].&[2011] )), (crossjoin([dep date].[calendar year].&[2012],[book date].[calendar year].&[2012] )), (crossjoin([dep date].[calendar year].&[2013],[book date].[calendar year].&[2012] )), (crossjoin([dep date].[calendar year].&[2013],[book date].[calendar year].&[2013] )) } on 0, non empty [fact lead pax report].[mc major].members on 1 [lead pax report] { [fact lead pax report].[res status].&[a] } and here s result table, want add total columns yellow marker is:

what adding column count departures specific year?
for example:
with set [esc tours market] filter( [fact lead pax report].[mc major].[mc major], ([fact lead pax report].[mc major].currentmember.name <> 'air') , ([fact lead pax report].[mc major].currentmember.name <> 'default') ) select { (crossjoin([dep date].[calendar year].&[2012],[book date].[calendar year].&[2011] )), (crossjoin([dep date].[calendar year].&[2012],[book date].[calendar year].&[2012] )), (crossjoin([dep date].[calendar year].&[2012],[book date].[calendar year] )), (crossjoin([dep date].[calendar year].&[2013],[book date].[calendar year].&[2012] )), (crossjoin([dep date].[calendar year].&[2013],[book date].[calendar year].&[2013] )), (crossjoin([dep date].[calendar year].&[2013],[book date].[calendar year] )) } on 0, [esc tours market] on 1 [lead pax report] { [fact lead pax report].[res status].&[a] }
Comments
Post a Comment