<?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: Sorting a range of number and letters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2354032#M59863</link>
    <description>&lt;P&gt;Hello Ami,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant get the new column to have 4 digits.&lt;/P&gt;&lt;P&gt;Looks like it is formated to text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the second part does not pick up the changes&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 17:13:46 GMT</pubDate>
    <dc:creator>carlosagarcia</dc:creator>
    <dc:date>2022-02-22T17:13:46Z</dc:date>
    <item>
      <title>Sorting a range of number and letters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2353600#M59842</link>
      <description>&lt;P&gt;Good morning everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to divide inventory locations into zones.&lt;/P&gt;&lt;P&gt;Our inventory locations start with row 0, shelf A, bin 1, example 0A1. each shelf has 5 bins, the shelfs go from A to J and we have 70 rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0A5&amp;nbsp; 0B5&lt;/P&gt;&lt;P&gt;0A4&amp;nbsp; 0B4&lt;/P&gt;&lt;P&gt;0A3&amp;nbsp; 0B3&amp;nbsp; and so on until shelf J&lt;/P&gt;&lt;P&gt;0A2&amp;nbsp; 0B2&lt;/P&gt;&lt;P&gt;0A1&amp;nbsp; 0B1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1A5&amp;nbsp; 1B5&lt;/P&gt;&lt;P&gt;1A4&amp;nbsp; 1B4&lt;/P&gt;&lt;P&gt;1A3&amp;nbsp; 1B3&amp;nbsp; and so on until shelf J&lt;/P&gt;&lt;P&gt;1A2&amp;nbsp; 1B2&lt;/P&gt;&lt;P&gt;1A1&amp;nbsp; 1B1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I sort by location, the result is row 0 first then I get all the 10s, 11s and so on until I get row 1, then all the 20s before I get to row 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for a way to create inventory zones where...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zone 1 are rows&amp;nbsp; everything in between 0A1 to 6J5&lt;/P&gt;&lt;P&gt;Zone 2 are rows everything in between 7A1 to 11J5&lt;/P&gt;&lt;P&gt;Zone 3 are rows everything in between 12A1 to 15J5 and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will this be possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 14:21:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2353600#M59842</guid>
      <dc:creator>carlosagarcia</dc:creator>
      <dc:date>2022-02-22T14:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a range of number and letters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2353896#M59860</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="189716" data-lia-user-login="carlosagarcia" class="lia-mention lia-mention-user"&gt;carlosagarcia&lt;/a&gt; , Try a new column like &lt;/P&gt;
&lt;P&gt;first concert you column to 4 digit&lt;/P&gt;
&lt;P&gt;column = format([Your column], "0000") &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Switch( True() ,&lt;/P&gt;
&lt;P&gt;[column] &amp;gt;= "00A1" &amp;amp;&amp;amp;&amp;nbsp; [column]&amp;nbsp; &amp;lt;= "06J5", "Zone 1" ,&lt;/P&gt;
&lt;P&gt;[column] &amp;gt;= "07A1" &amp;amp;&amp;amp;&amp;nbsp; [column]&amp;nbsp; &amp;lt;= "11J5", "Zone 2" ,&lt;/P&gt;
&lt;P&gt;[column] &amp;gt;= "12A1" &amp;amp;&amp;amp;&amp;nbsp; [column]&amp;nbsp; &amp;lt;= "15J5", "Zone 3" )&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 16:08:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2353896#M59860</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-22T16:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a range of number and letters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2354032#M59863</link>
      <description>&lt;P&gt;Hello Ami,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant get the new column to have 4 digits.&lt;/P&gt;&lt;P&gt;Looks like it is formated to text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the second part does not pick up the changes&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:13:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2354032#M59863</guid>
      <dc:creator>carlosagarcia</dc:creator>
      <dc:date>2022-02-22T17:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a range of number and letters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2354959#M59922</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="189716" data-lia-user-login="carlosagarcia" class="lia-mention lia-mention-user"&gt;carlosagarcia&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It is doable. Please confirm on which order you need the result to be.&lt;/P&gt;&lt;P&gt;Your zones end 15J5, what about the rest?&amp;nbsp;&lt;BR /&gt;Please share sample file it available.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 06:03:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2354959#M59922</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-23T06:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a range of number and letters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2355627#M59968</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="189716" data-lia-user-login="carlosagarcia" class="lia-mention lia-mention-user"&gt;carlosagarcia&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Here is a sample file with the proposed solution&amp;nbsp;&lt;A href="https://www.dropbox.com/t/kdaoTHJT66w4n9vH" target="_blank"&gt;https://www.dropbox.com/t/kdaoTHJT66w4n9vH&lt;/A&gt;&lt;BR /&gt;In the sample file I used DX code to generate a separate&amp;nbsp;rows (Row, Shelf &amp;amp; Bin) but you can conveniently use Power Query (Add Column - From Example ) to do the same. Once the columns are seperate you can use DAX to create a new "Sorting by column"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Sort By Number = 
VAR Shelves = 
    SWITCH ( TRUE, [Shelf] = "A", 1, [Shelf] = "B", 2, [Shelf] = "C", 3, [Shelf] = "D", 4, [Shelf] = "E", 5, [Shelf] = "F", 6, [Shelf] = "G", 7, [Shelf] = "H", 8, [Shelf] = "I", 9, [Shelf] = "J", 10 )
VAR Result =
    [Row] + Shelves * 100 + [Bin] * 10000
RETURN
    Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last step: select the location and from Column Tools - Sort By Column select the new column.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;Please let me know if you need to create hierarchy&amp;nbsp;and group by Zones. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 10:19:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2355627#M59968</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-23T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a range of number and letters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2359342#M60222</link>
      <description>&lt;P&gt;Hello Ami, have you been able to review my question?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 16:58:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2359342#M60222</guid>
      <dc:creator>carlosagarcia</dc:creator>
      <dc:date>2022-02-24T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a range of number and letters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2359354#M60223</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="189716" data-lia-user-login="carlosagarcia" class="lia-mention lia-mention-user"&gt;carlosagarcia&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;have you had the chance to review my solution? Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 17:00:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2359354#M60223</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-02-24T17:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a range of number and letters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2359377#M60226</link>
      <description>&lt;P&gt;Tamerj1,&lt;/P&gt;&lt;P&gt;I am so sorry I did not see your response, I just did a quick reply, let me test it right now.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 17:10:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2359377#M60226</guid>
      <dc:creator>carlosagarcia</dc:creator>
      <dc:date>2022-02-24T17:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting a range of number and letters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2360654#M60315</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="189716" data-lia-user-login="carlosagarcia" class="lia-mention lia-mention-user"&gt;carlosagarcia&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;In order to&amp;nbsp;give you a suitable solution faster, could you please provide &lt;STRONG&gt;some sample data(exclude sensitive data)&lt;/STRONG&gt; and &lt;STRONG&gt;the final result you want&lt;/STRONG&gt;? And give examples of the &lt;STRONG&gt;sorting rules&lt;/STRONG&gt; involved. If possible, &lt;STRONG&gt;a sample pbix file&lt;/STRONG&gt; would be better. Thank you.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 08:32:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sorting-a-range-of-number-and-letters/m-p/2360654#M60315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-25T08:32:26Z</dc:date>
    </item>
  </channel>
</rss>

