Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2012-03-09
2
778 Views
Last Modified: 2016-02-14
Hello,

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?

Thanks
0
Comment
Question by:hpsuser
2 Comments
 
LVL 17

Assisted Solution

by:Barry Cunney
Barry Cunney earned 250 total points
ID: 37710208
0
 
LVL 37

Accepted Solution

by:
ValentinoV earned 250 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 :) )
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

829 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