简体   繁体   中英

SSAS - How to hide branches without leaf from a dimension?

I'm working on a SSAS project. I created a DimGeography dimension to represent Country > Region > Department > City > Store as a Tree. It works well ! However, my tree display all branches without stores.

在此处输入图片说明

So after processing my dimension I can browse all elements even if there is no store in a city (or dept/region/country).

在此处输入图片说明

Any idea to solve that ?

Thanks !

Instead of separate tables, I would use one view as the base for the dimension with all tables joined together. And if you use inner joins, then the branches without shops would not appear in the view, end hence not in the dimension as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM