sql server - SSAS Calculated measure to show values only for specific dimension values -


i have calculated measure in ssas cube, want calculate group of dimension members , rest should zero. in following image want mtdoccupancy dimension work account groups rooms, rest related food should show 0 field. enter image description here

following simple mdx using mtdoccupancy measure

([mtdquantity]/[mtdavailablerooms])*100 

you can change measure following:

iif(     left([account group].[account group].currentmember.member_caption,5) = "rooms"   ,([mtdquantity]/[mtdavailablerooms])*100   ,null ) 

i have guessed dimension/hierarchy combination [account group].[account group]. ... - need change reflect names used in cube.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -