ssas - Add another measure in MDX -


mdx query:

select non empty { [time].[date].[date].allmembers } on columns, non empty { [person].[alias].[alias].allmembers } on rows [cube] ( [measures].[count person] ) 

result format:

        2014-04-01  2014-04-02  2014-04-04    xyz     14          36          68   

what if want include measure [measures].[person%] column , result in following format:

        person% 2014-04-01  2014-04-02  2014-04-04    xyz     10%         14          36          68 

how can arrange query?

you can use

select non empty { ( [measures].[person%], [time].[date].[all]) } + {[measures].[count person]} * [time].[date].[date].allmembers on columns, non empty { [person].[alias].[alias].allmembers } on rows [cube] 

just using 2 hierarchies (measures , time) in columns.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -