How to use the attribute key value as the sort order in a SSAS cube

Posted on 2012-03-09
Medium Priority
Last Modified: 2016-02-14

I have a SSAS cube with a dimension "PRODUCT DIMENSION".  Within this dimension, I would like the "PRODUCT" attribute to always sort according to the "PRODUCT KEY" attribute.

Is there a way to do this?

Question by:hpsuser
LVL 17

Assisted Solution

by:Barry Cunney
Barry Cunney earned 1000 total points
ID: 37710208
LVL 37

Accepted Solution

ValentinoV earned 1000 total points
ID: 37713470
Select the Product attribute and change the OrderBy property to "Key".

(This assumes that your "PRODUCT KEY" attribute is the dimension key.  If it's not, you should really consider renaming it :) )

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
In this article, we will show how to detach and attach a database and then show how to repair a corrupt database and attach it, If it has some errors. We will show how to detach and attach using SSMS or using T-SQL sentences.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

586 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question