<?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: Dual Function not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dual-Function-not-working/m-p/1389519#M422676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where and how is Dual () being used? Sample will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Sep 2017 13:01:08 GMT</pubDate>
    <dc:creator>b_garside</dc:creator>
    <dc:date>2017-09-21T13:01:08Z</dc:date>
    <item>
      <title>Dual Function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Function-not-working/m-p/1389517#M422674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how to use this function. The examples I've seen seem to focus on dates and such and not really fields with good examples. I'm using qlik sense and have data coming in. I want to take the dimension I'm using and sort based on the text in a bar chart but for some reason the sort isn't working and someone suggested using the dual function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the data I'm loading:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NonCustomer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GroupItem,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pick(WildMatch(GroupItem, '*Arcadia*','*Airman*'),'Other', GroupItem) as NewNonCustomer;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NonCustomer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(NonCustomer, ',') as GroupItem;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data loads and I pull in the dimension to the chart, GroupItem and the measure, GroupItem(Count). When the chart displays, I get the correct data but the data does not sort alphabetically even though qlik sense says it is. The data displays as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arcadia&lt;/P&gt;&lt;P&gt;Customer1&lt;/P&gt;&lt;P&gt;Airman&lt;/P&gt;&lt;P&gt;USGee&lt;/P&gt;&lt;P&gt;Chordia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone suggested using the dual function but that doesn't seem to work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 12:43:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Function-not-working/m-p/1389517#M422674</guid>
      <dc:creator />
      <dc:date>2017-09-21T12:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Function-not-working/m-p/1389518#M422675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post a sample app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 12:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Function-not-working/m-p/1389518#M422675</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-09-21T12:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Function-not-working/m-p/1389519#M422676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where and how is Dual () being used? Sample will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 13:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Function-not-working/m-p/1389519#M422676</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2017-09-21T13:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dual Function not working</title>
      <link>https://community.qlik.com/t5/QlikView/Dual-Function-not-working/m-p/1389520#M422677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As kind of one-off you may enter an expression into the sort-properties of an object:&lt;/P&gt;&lt;P&gt;MATCH(Customer, 'USGhee', 'Airman', 'Chordia', ......)&lt;/P&gt;&lt;P&gt;would sort the customer in the order of the Match, i.e. USGhee first, then Airman etc ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you wish to reuse this kind of order, you may load the sortorder (from extern, or as INLINE):&lt;/P&gt;&lt;P&gt;MapSort: MAPPING LOAD * INLINE [Customer, SortOrder&lt;/P&gt;&lt;P&gt;USGhee, 1&lt;/P&gt;&lt;P&gt;Airman, 2&lt;/P&gt;&lt;P&gt;Chordia, 3&lt;/P&gt;&lt;P&gt;....];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you load your data, you may add the DUAL-function:&lt;/P&gt;&lt;P&gt;Data: LOAD *, DUAL(Customer, APPLYMAP('mapSort', Customer))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS Customer_ord&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this a number would be attached to the customer. In Tables etc this field will behave like a number (sorting, rightbound etc.).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 15:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dual-Function-not-working/m-p/1389520#M422677</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-21T15:02:51Z</dc:date>
    </item>
  </channel>
</rss>

