﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Bill_Pearson  /  Stairway to MDX - STEP 3: The Order() Function / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 20 Jun 2013 03:54:11 GMT</lastBuildDate><ttl>20</ttl><item><title>RE:  Stairway to MDX - STEP 3: The Order() Function</title><link>http://www.sqlservercentral.com/Forums/Topic1063692-2861-1.aspx</link><description>Another quite good lesson:[url=Another quite good lesson: http://www.learn-with-video-tutorials.com/mdx-video-tutorial-free]http://www.learn-with-video-tutorials.com/mdx-video-tutorial-free[/url]</description><pubDate>Fri, 17 Aug 2012 01:47:37 GMT</pubDate><dc:creator>arturm_007</dc:creator></item><item><title>RE:  Stairway to MDX - STEP 3: The Order() Function</title><link>http://www.sqlservercentral.com/Forums/Topic1063692-2861-1.aspx</link><description>I get this error for the below code:Query (11, 7) Parser: The syntax for 'ORDER' is incorrect.[code="other"]-- SMDX003-004 Simple Use of Order() function across columns, --  sort descending(respecting hierarchies) SELECT    NONEMPTY      ORDER(         {[Geography].[Geography].[State-Province].[Alabama].CHILDREN,            [Geography].[Geography].[State-Province].[Mississippi].CHILDREN},         [Measures].[Reseller Sales Amount], DESC      ) ON AXIS(0),             {[Measures].[Reseller Sales Amount]} ON AXIS(1)FROM    [Adventure Works][/code]What's wrong with the syntax?TIA,Rob</description><pubDate>Tue, 18 Oct 2011 12:27:22 GMT</pubDate><dc:creator>rgtft</dc:creator></item><item><title>RE:  Stairway to MDX - STEP 3: The Order() Function</title><link>http://www.sqlservercentral.com/Forums/Topic1063692-2861-1.aspx</link><description>I'm going to leave this right here, even though I think it might just get answered in the next Stairway article.In the example from STEP 3, how could I sort by Resellers Sales Amount DESC without the State_Province natural heirarchy breaking it up into what to me is two separate sorGed lists.  I want to see Resellers Sales Amount in DESC order with out grouping by state.Great article so far.  It's giving me the kick start to MDX that I needed (I wanted to learn MDX but didn't know where to start).EDIT: Just as I thought.  BASC and BDESC will do this and are explained in the next StepJeff.</description><pubDate>Mon, 29 Aug 2011 15:07:55 GMT</pubDate><dc:creator>jeff122877</dc:creator></item><item><title>RE:  Stairway to MDX - STEP 3: The Order() Function</title><link>http://www.sqlservercentral.com/Forums/Topic1063692-2861-1.aspx</link><description>Item 3 code mismatch:         {[Geography].[Geography].[State-Province].[Alabama].CHILDREN,            [Geography].[Geography].[State-Province].[Alabama].CHILDREN}s/b Alabama, Mississippi</description><pubDate>Thu, 03 Mar 2011 13:54:01 GMT</pubDate><dc:creator>Roland Brown</dc:creator></item><item><title> Stairway to MDX - STEP 3: The Order() Function</title><link>http://www.sqlservercentral.com/Forums/Topic1063692-2861-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/Stairway+Series/Maintaining+cube+hierarchies/72255/"&gt; Stairway to MDX - STEP 3: The Order() Function&lt;/A&gt;[/B]</description><pubDate>Mon, 14 Feb 2011 10:37:11 GMT</pubDate><dc:creator>Bill_Pearson</dc:creator></item></channel></rss>