use Cube Functions to get filtered dimensions

左心房为你撑大大i 提交于 2019-12-24 14:39:58

问题


How do you get a list of filtered dimentions from a cube function

say I had a dimention table of addresses:

1234  Any Street  Detroit  MI 48229
55588 187th St E  Seattle  WA 98888
4     Blossum Ave Wescotte AL 66554

How could I get a CUBERANKEDMEMBER list of street addresses with a certain zip?


回答1:


You could use

=cubeset("powerpivot", "nonempty([City].[Zip].children, [Measure].[Count of City])", "set")

and then use

=Cuberankmember("powerpivot", set, 1)
=Cuberankmember("powerpivot", set, 2)
....

where set is the name of cell where first formula is.



来源:https://stackoverflow.com/questions/10660327/use-cube-functions-to-get-filtered-dimensions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!