<?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 with ApplyMap in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331492#M831114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you do order by for Second table where you are using ApplyMap() with Left Join&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jun 2017 08:28:13 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-06-21T08:28:13Z</dc:date>
    <item>
      <title>Order By with ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331491#M831113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just really looking for confirmation that this isn't possible. I receive an error when I try to ORDER BY (ApplyMap(...... &lt;/P&gt;&lt;P&gt;I use the mapping within the actual table I am attempting to order, and the mapping works perfectly, and I can also order by the field that is used in the mapping call, but I can't seem to order by the actual value that is brought in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331491#M831113</guid>
      <dc:creator>quilldew</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Order By with ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331492#M831114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you do order by for Second table where you are using ApplyMap() with Left Join&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 08:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331492#M831114</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-21T08:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Order By with ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331493#M831115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could do, but I'm using the mapping table so I don't have to join them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 08:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331493#M831115</guid>
      <dc:creator>quilldew</dc:creator>
      <dc:date>2017-06-21T08:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Order By with ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331494#M831116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's how i clearly written use the second table where it's not the Mapping table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 08:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331494#M831116</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-21T08:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Order By with ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331495#M831117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the script which is giving you the error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 08:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331495#M831117</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-21T08:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Order By with ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331496#M831118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The whole script is rather large but this I can share this part that is causing an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP_CLIENTS:&lt;/P&gt;&lt;P&gt;Mapping LOAD [KEY ClientReferral], [KEY Client]&lt;/P&gt;&lt;P&gt;Resident sub_........;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [KEY ClientReferral], ReferralInterval,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(ReferralInterval &amp;lt; 29 and ReferralInterval &amp;gt;= 0,1, 0) as IntervalFlag&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [KEY ClientReferral],&lt;/P&gt;&lt;P&gt;&amp;nbsp; If (ApplyMap('MAP_CLIENTS', [KEY ClientReferral]) = ApplyMap('MAP_CLIENTS', Previous([KEY ClientReferral])),&amp;nbsp; ReferralReceivedDate - Previous(ReferralDischargeDate), 100) as ReferralInterval&lt;/P&gt;&lt;P&gt;Resident&amp;nbsp; tbl_.......&lt;/P&gt;&lt;P&gt;ORDER BY ApplyMap('MAP_CLIENTS', [KEY ClientReferral]), ReferralReceivedDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the error I receive is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field not found&lt;/P&gt;&lt;P&gt;LOAD [KEY ClientReferral],&lt;/P&gt;&lt;P&gt;&amp;nbsp; If (ApplyMap('MAP_CLIENTS', [KEY ClientReferral]) = ApplyMap('MAP_CLIENTS', Previous([KEY ClientReferral])),&amp;nbsp; ReferralReceivedDate - Previous(ReferralDischargeDate), 100) as ReferralInterval&lt;/P&gt;&lt;P&gt;Resident&amp;nbsp; tbl_.......&lt;/P&gt;&lt;P&gt;ORDER BY ApplyMap('MAP_CLIENTS', [KEY ClientReferral]), ReferralReceivedDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The is no error if I use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ORDER BY &lt;SPAN style="font-size: 13.3333px;"&gt;[KEY ClientReferral]&lt;/SPAN&gt;, ReferralReceivedDate;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but obviously the Order is wrong so my IntervalFlag isn't being applied in the way I would like.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 09:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331496#M831118</guid>
      <dc:creator>quilldew</dc:creator>
      <dc:date>2017-06-21T09:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Order By with ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331497#M831119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure, but you can break it down into two loads&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;MAP_CLIENTS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Mapping LOAD [KEY ClientReferral], [KEY Client]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident sub_........;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;TEMP_TABLE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD [KEY ClientReferral],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ApplyMap('MAP_CLIENTS', [KEY ClientReferral]) as TEMP_FIELD&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; If (ApplyMap('MAP_CLIENTS', [KEY ClientReferral]) = ApplyMap('MAP_CLIENTS', Previous([KEY ClientReferral])),&amp;nbsp; ReferralReceivedDate - Previous(ReferralDischargeDate), 100) as ReferralInterval&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident&amp;nbsp; tbl_.......;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #ff0000;"&gt;FINAL_TABLE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD [KEY ClientReferral], ReferralInterval,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; If(ReferralInterval &amp;lt; 29 and ReferralInterval &amp;gt;= 0,1, 0) as IntervalFlag&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident &lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;TEMP_TABLE&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;ORDER BY &lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TEMP_FIELD&lt;/SPAN&gt;, ReferralReceivedDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #ff0000;"&gt;DROP Table TEMP_TABLE;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 11:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331497#M831119</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-21T11:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Order By with ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331498#M831120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this throws an error because:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ORDER BY &lt;SPAN style="font-weight: inherit; font-style: inherit; color: #ff0000;"&gt;TEMP_FIELD&lt;/SPAN&gt;, ReferralReceivedDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ReferralReceivedDate&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;isn't in the &lt;STRONG&gt;TEMP_TABLE&lt;/STRONG&gt; or &lt;STRONG&gt;FINAL_TABLE&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;When removed it gives exactly the same results as the original script with the preceding load.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 12:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331498#M831120</guid>
      <dc:creator>quilldew</dc:creator>
      <dc:date>2017-06-22T12:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Order By with ApplyMap</title>
      <link>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331499#M831121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be bring that in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MAP_CLIENTS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mapping LOAD [KEY ClientReferral], [KEY Client]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident sub_........;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TEMP_TABLE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [KEY ClientReferral],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('MAP_CLIENTS', [KEY ClientReferral]) as TEMP_FIELD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If (ApplyMap('MAP_CLIENTS', [KEY ClientReferral]) = ApplyMap('MAP_CLIENTS', Previous([KEY ClientReferral])),&amp;nbsp; ReferralReceivedDate - Previous(ReferralDischargeDate), 100) as ReferralInterval&lt;SPAN style="color: #ff0000;"&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;ReferralReceivedDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident&amp;nbsp; tbl_.......;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FINAL_TABLE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #ff0000;"&gt;*,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(ReferralInterval &amp;lt; 29 and ReferralInterval &amp;gt;= 0,1, 0) as IntervalFlag&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident TEMP_TABLE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ORDER BY TEMP_FIELD, ReferralReceivedDate;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;DROP Table TEMP_TABLE;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 13:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Order-By-with-ApplyMap/m-p/1331499#M831121</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-22T13:06:14Z</dc:date>
    </item>
  </channel>
</rss>

