<?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: SORT NEGATIVE NUMBERS IN ORDER in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1285309#M21990</link>
    <description>&lt;P&gt;Cant. The values were created using a calculated measure so in power query, you do not see that column to manipulate&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 19:27:14 GMT</pubDate>
    <dc:creator>cuohanele</dc:creator>
    <dc:date>2020-08-10T19:27:14Z</dc:date>
    <item>
      <title>SORT NEGATIVE NUMBERS IN ORDER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1284297#M21939</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently working on a table in desktop that needs the negative numbers to be sorted properly. I formatted the numbers to have units behind them so the column looks something like this:&lt;/P&gt;&lt;P&gt;-11 bps&lt;/P&gt;&lt;P&gt;-13 bps&lt;/P&gt;&lt;P&gt;-14 bps&lt;/P&gt;&lt;P&gt;-29 bps&lt;/P&gt;&lt;P&gt;-6 bps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want it to look like this:&lt;/P&gt;&lt;P&gt;-29&lt;/P&gt;&lt;P&gt;-14&lt;/P&gt;&lt;P&gt;-13&lt;/P&gt;&lt;P&gt;-11&lt;/P&gt;&lt;P&gt;-6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize that PBI is seeing these numbers as text. How can I fix this? I was able to use this DAX to sort all the other numbers without negatives and it worked but the negative values are giving me issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;GM% = IF(ISCROSSFILTERED('Parameter'[calculations]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH( TRUE(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUES ( 'Parameter'[calculations] ) = "YoY%", SWITCH( TRUE(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;([GM% bps]) &amp;lt; 0, FORMAT ( [GM% bps], " 0 bps"), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ([GM% bps]) &amp;lt; 10, FORMAT ( [GM% bps], " 0 bps"), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ([GM% bps]) &amp;lt; 100, FORMAT ( [GM% bps], " 0 bps"), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FORMAT ( [GM% bps], "0 bps")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Aug 2020 11:56:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1284297#M21939</guid>
      <dc:creator>cuohanele</dc:creator>
      <dc:date>2020-08-10T11:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: SORT NEGATIVE NUMBERS IN ORDER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1284302#M21940</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251238" data-lia-user-login="cuohanele" class="lia-mention lia-mention-user"&gt;cuohanele&lt;/a&gt;&amp;nbsp;- If this is a column you could use a Sort By column and just make sure it is numeric and just the number portion.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 11:58:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1284302#M21940</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-08-10T11:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: SORT NEGATIVE NUMBERS IN ORDER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1284418#M21942</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251238" data-lia-user-login="cuohanele" class="lia-mention lia-mention-user"&gt;cuohanele&lt;/a&gt; , create a number column by removing " bps"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in power query&lt;/P&gt;
&lt;P&gt;New col =Text.Remove([Column]," bps")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sort the original column on new column&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 12:48:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1284418#M21942</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-08-10T12:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: SORT NEGATIVE NUMBERS IN ORDER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1284962#M21972</link>
      <description>This is how you do such things properly:&lt;BR /&gt;&lt;A href="https://youtu.be/72qQrPw4RuE?t=304" target="_blank"&gt;https://youtu.be/72qQrPw4RuE?t=304&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You handle this through custom number formats.</description>
      <pubDate>Mon, 10 Aug 2020 16:09:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1284962#M21972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-10T16:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: SORT NEGATIVE NUMBERS IN ORDER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1285303#M21989</link>
      <description>&lt;P&gt;Unfortunately the video does not pertain to my dilemma. I attempted but nothing worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My requirements are to CONCAT "bps" to the numbers so they come out like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-1&amp;nbsp; bps&lt;/P&gt;&lt;P&gt;-11 bps&lt;/P&gt;&lt;P&gt;-2 bps&lt;/P&gt;&lt;P&gt;-222 bps&lt;/P&gt;&lt;P&gt;-3 bps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because of the addition of the "bps" it seems PBI does not know how to sort the numbers in order.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 19:26:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1285303#M21989</guid>
      <dc:creator>cuohanele</dc:creator>
      <dc:date>2020-08-10T19:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: SORT NEGATIVE NUMBERS IN ORDER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1285309#M21990</link>
      <description>&lt;P&gt;Cant. The values were created using a calculated measure so in power query, you do not see that column to manipulate&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 19:27:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SORT-NEGATIVE-NUMBERS-IN-ORDER/m-p/1285309#M21990</guid>
      <dc:creator>cuohanele</dc:creator>
      <dc:date>2020-08-10T19:27:14Z</dc:date>
    </item>
  </channel>
</rss>

