<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ORDER BY Statement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ORDER-BY-Statement/m-p/3754254#M146471</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291478" data-lia-user-login="harry6810" class="lia-mention lia-mention-user"&gt;harry6810&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can create a rank measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index =
RANKX ( ALL ( 'Table' ), 'Table'[Units], MAX ( 'Table'[Units] ), DESC, DENSE )
&lt;/LI-CODE&gt;
&lt;P&gt;Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2024 07:26:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-03-11T07:26:45Z</dc:date>
    <item>
      <title>ORDER BY Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ORDER-BY-Statement/m-p/3752186#M146349</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have two main datasets connected by relationships through separate tables for specific features. Is there any way to sort my power pivot from highest to lowest value with using measure? Expected result as below. Thanks in advance for any tips.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 22:56:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ORDER-BY-Statement/m-p/3752186#M146349</guid>
      <dc:creator>harry6810</dc:creator>
      <dc:date>2024-03-08T22:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: ORDER BY Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ORDER-BY-Statement/m-p/3752956#M146409</link>
      <description>&lt;P&gt;Once you have multiple measures on columns in a pivot, you can't sort them. You could try removing all measures except the one you want to sort, sort it first, then add the others. I don't know if it will work. You may be able to write a DAX query to produce the output and sort that. Here are some articles I wrote that may help&lt;/P&gt;&lt;P&gt;&lt;A href="https://exceleratorbi.com.au/introduction-dax-query-language/" target="_blank"&gt;https://exceleratorbi.com.au/introduction-dax-query-language/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://exceleratorbi.com.au/dax-query-tables-in-excel-2010/" target="_blank"&gt;https://exceleratorbi.com.au/dax-query-tables-in-excel-2010/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 20:57:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ORDER-BY-Statement/m-p/3752956#M146409</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2024-03-09T20:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: ORDER BY Statement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ORDER-BY-Statement/m-p/3754254#M146471</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291478" data-lia-user-login="harry6810" class="lia-mention lia-mention-user"&gt;harry6810&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can create a rank measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index =
RANKX ( ALL ( 'Table' ), 'Table'[Units], MAX ( 'Table'[Units] ), DESC, DENSE )
&lt;/LI-CODE&gt;
&lt;P&gt;Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables (&lt;STRONG&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/STRONG&gt;) with&amp;nbsp;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;pbix file.&amp;nbsp;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 07:26:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/ORDER-BY-Statement/m-p/3754254#M146471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-11T07:26:45Z</dc:date>
    </item>
  </channel>
</rss>

