SSAS FAQ Design FAQ How in Analysis Services do you order dimension attribute during design
How in Analysis Services do you order dimension attribute during design
User Rating: / 1
PoorBest 
Written by Vidas Matelis   
Saturday, 21 April 2007 19:21

Q: How do you order dimension attribute?

A: Each attribute has following properties that defines how attribute is ordered:

  • Order By
  • Order By Attribute

Order by attribute is drop down list that contains following options:

  • Key
  • Name (default option)
  • Attribute Key
  • Attribute Name

Option "Key" means that attribute will be ordered based on key value. Do not forget that ordering depends on key type: example if key is integer, then ordering will be 1, 2, 3..., 11, 12. If Key is string, then ordering will be 1, 11, 12, 2, 3 ...

Option "Name" means that attribute will be ordered based on name value.

Option "Attribute Key" means that ordering will be based on attribute that is specified in property "Order by Attribute" key value.

Option "Attribute Name" means that ordering will be based on attribute that is specified in property "Order by Attribute" name value.

Property "Order By Attribute" lets you choose attribute for "Attribute Key" and "Attribute Name" options in "Order By" property.

 

 
Tags: design, faq

Comments (2)
2 Monday, 28 April 2008 02:11
admin
When you order date members in reversing order, be aware that some of the date function (example YTD, MTD) will not work as expected.
Otherwise, option I would use:
In Analysis Services Data Source View introduce calculated field with formula something like:
CONVERT(smallint, SUBSTRING(WWFieldName, 3, 2)) * (-1) AS WWeekOrderID
and then create attribute based on that field and then order WorkWeeks based on this attribute.
1 Sunday, 27 April 2008 08:26
Reverse ordeR?
Hey, supposingly i have an order by key of workweeks in the following format : WW**. how do i reverse that order, so the latests workweeks come first in the selection?
thank you.
Strategy Companion