简体   繁体   中英

Ordering Dimension Hierarchy SSAS

I'm quite new to SSAS so bear with me!

I have created a snowflake schema with Members in the Fact table and I have create a distance from club table with DistanceID,Distance,DistanceRange (this is denormalised in SQL Server with distance range appearing multiple times per distance. eg Distance 1 has a range of 1 - 10 and Distance 2 also has a range of 1 - 10

I have then created a hierarchy with Distance Range at the top and Distance beneath it. This works OK in terms of providing drill down functionality but the ordering is wrong for distance range. It is ordering them by Distance Range as a string so I get 1-10 followed by 100-10 and then 20-30.

How do I tell the Distance Range to order by Distance ID

Not sure if I'm doing it right.

When you are editing your Dimension, click on the attribute DistanceRange and in the properties, there should be an option to 'OrderBy' and 'OrderByAttribute'. Try and use those the get the result you need. Otherwise, you might want to try change the 'Type' in the properties menu and see if that works.

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