<?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 List month by order in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2001467#M82944</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;my original field for month from source is showing 001, 002, 003, ..., 010, 011,012, so I create below mapping table, and apply map for the field.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ApplyMap('Mappingpostingperiodtomonth',Field'Not Assigned') as Month&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But from the visual layer, it came out Nov, Jan, Feb, Mar, ..., Oct. Not sure why Nov become the first one and it didn't follow my list order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mappingpostingperiodtomonth:&lt;BR /&gt;Mapping Load *&lt;BR /&gt;Inline [&lt;BR /&gt;MonthNo,Longmonth&lt;BR /&gt;001, Jan&lt;BR /&gt;002, Feb&lt;BR /&gt;003, Mar&lt;BR /&gt;004, Apr&lt;BR /&gt;005, May&lt;BR /&gt;006, Jun&lt;BR /&gt;007, Jul&lt;BR /&gt;008, Aug&lt;BR /&gt;009, Sep&lt;BR /&gt;010, Oct&lt;BR /&gt;011, Nov&lt;BR /&gt;012, Dec];&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 02:40:58 GMT</pubDate>
    <dc:creator>Cassie_L</dc:creator>
    <dc:date>2022-11-08T02:40:58Z</dc:date>
    <item>
      <title>List month by order</title>
      <link>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2001467#M82944</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;my original field for month from source is showing 001, 002, 003, ..., 010, 011,012, so I create below mapping table, and apply map for the field.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ApplyMap('Mappingpostingperiodtomonth',Field'Not Assigned') as Month&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But from the visual layer, it came out Nov, Jan, Feb, Mar, ..., Oct. Not sure why Nov become the first one and it didn't follow my list order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mappingpostingperiodtomonth:&lt;BR /&gt;Mapping Load *&lt;BR /&gt;Inline [&lt;BR /&gt;MonthNo,Longmonth&lt;BR /&gt;001, Jan&lt;BR /&gt;002, Feb&lt;BR /&gt;003, Mar&lt;BR /&gt;004, Apr&lt;BR /&gt;005, May&lt;BR /&gt;006, Jun&lt;BR /&gt;007, Jul&lt;BR /&gt;008, Aug&lt;BR /&gt;009, Sep&lt;BR /&gt;010, Oct&lt;BR /&gt;011, Nov&lt;BR /&gt;012, Dec];&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 02:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2001467#M82944</guid>
      <dc:creator>Cassie_L</dc:creator>
      <dc:date>2022-11-08T02:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: List month by order</title>
      <link>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2001533#M82952</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/206021"&gt;@Cassie_L&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most likely down to the Measure, Just go to sort and sort my expression and add your field MonthNo should sort it as you require.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 07:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2001533#M82952</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2022-11-08T07:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: List month by order</title>
      <link>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2001537#M82953</link>
      <description>&lt;P&gt;The mapping won't define the ordering else either the load-order or the numeric value respectively the alphanumeric value - and in your case your values are strings and an alphanumeric ordering would be applied, if not the load-order is chosen.&lt;/P&gt;
&lt;P&gt;In your case you may not mandatory need this mapping else you may just convert the string into a numeric value or maybe a dual() value if this 3-digits interpretation is really wanted. It might look like:&lt;/P&gt;
&lt;P&gt;dual(YourValue, num#(YourValue)) as Value&lt;/P&gt;
&lt;P&gt;Beside this if there is also a date available an association to a master-calendar might have further benefits.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 07:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2001537#M82953</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-11-08T07:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: List month by order</title>
      <link>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2001538#M82954</link>
      <description>&lt;P&gt;Hi, that could be because there is no sort option for the field and is sorting bi load order, or becasuse other selections are filtering data.&lt;/P&gt;
&lt;P&gt;You can add a trick to first load the inline data to keep the load order, and remove the table after the facts table, like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sortMonths:
LOAD * inline ...

Mappingposting...:
Mapping load * resident sortMonths;

DataTable:
LOAD ...
  Applymap('Mappingpos....
...;

DROP Table sortMonths;&lt;/LI-CODE&gt;
&lt;P&gt;Another option is create the field using the Month() function this creates a Dual value, this is a value that is a number and a text, so the same field knows it's sorting, you can create as:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Month(Makedate(2000,MonthNo)) // You can set any year, we only need the month.&lt;/LI-CODE&gt;
&lt;P&gt;Maybe you need to convert the field to number:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Month(Makedate(2000,Num#(MonthNo,'0'))) // You can set any year, we only need the month.&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Nov 2022 07:37:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2001538#M82954</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2022-11-08T07:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: List month by order</title>
      <link>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2004377#M83149</link>
      <description>&lt;P&gt;Hi, Mark,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the soring, I use below expression and it works! Thank you.&lt;/P&gt;
&lt;P&gt;Match(Month, 'Jan', 'Feb', 'Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec')&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 03:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2004377#M83149</guid>
      <dc:creator>Cassie_L</dc:creator>
      <dc:date>2022-11-15T03:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: List month by order</title>
      <link>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2005947#M83247</link>
      <description>&lt;P&gt;Thank you, ruben,&amp;nbsp;&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;Month(Makedate(2000,Num#(MonthNo,'0')))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;By applied Month(Makedate92000, Num#(Myfield,'0')))&lt;/P&gt;
&lt;P&gt;It&amp;nbsp; shown JAN FEB MAR and have correct order now. Thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 14:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/List-month-by-order/m-p/2005947#M83247</guid>
      <dc:creator>Cassie_L</dc:creator>
      <dc:date>2022-11-17T14:54:36Z</dc:date>
    </item>
  </channel>
</rss>

