<?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: map using dual in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/map-using-dual/m-p/14376#M996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work. Maybe there is a mistake with the fieldnames or your order of the actions is wrong. If I do the following in QlikView it worked (switching to autogenerate just to avoid potential problems with the number-interpretation of inline loads):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YesNoMapTemp:&lt;/P&gt;&lt;P&gt;load 0 as num, 'no' as str autogenerate 1;&lt;/P&gt;&lt;P&gt;load 1 as num, 'yes' as str autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YesNoMap:&lt;/P&gt;&lt;P&gt;mapping load num, dual(str, num) resident YesNoMapTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables YesNoMapTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP F1 USING YesNoMap;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;load 0 as F1, 'a' as F2 autogenerate 1;&lt;/P&gt;&lt;P&gt;load 1 as F1, 'b' as F2 autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196140_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2018 09:00:12 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-03-13T09:00:12Z</dc:date>
    <item>
      <title>map using dual</title>
      <link>https://community.qlik.com/t5/App-Development/map-using-dual/m-p/14375#M995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: arial, helvetica, sans-serif;"&gt;If I use this in Qliksense:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Lato, sans-serif; font-size: 16px; margin: 0 0 24px; color: #2b2b2b;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;YesNoMap:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: arial, helvetica, sans-serif;"&gt;MAPPING LOAD num, dual(str, num) INLINE [&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: arial, helvetica, sans-serif;"&gt;num, str&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: arial, helvetica, sans-serif;"&gt;0, No&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: arial, helvetica, sans-serif;"&gt;1, Yes&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: arial, helvetica, sans-serif;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: Lato, sans-serif; font-size: 16px; margin: 0 0 24px; color: #2b2b2b;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;MAP Shipped USING YesNoMap;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lato, sans-serif; font-size: 16px; margin: 0 0 24px; color: #2b2b2b;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: Lato, sans-serif; font-size: 16px; margin: 0 0 24px; color: #2b2b2b;"&gt;&lt;SPAN style="font-style: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;Then Shipped (after a load) does NOT work as dual, as intended. Is the functionality not yet implemented?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 06:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/map-using-dual/m-p/14375#M995</guid>
      <dc:creator>gmenoutis</dc:creator>
      <dc:date>2018-03-13T06:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: map using dual</title>
      <link>https://community.qlik.com/t5/App-Development/map-using-dual/m-p/14376#M996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should work. Maybe there is a mistake with the fieldnames or your order of the actions is wrong. If I do the following in QlikView it worked (switching to autogenerate just to avoid potential problems with the number-interpretation of inline loads):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YesNoMapTemp:&lt;/P&gt;&lt;P&gt;load 0 as num, 'no' as str autogenerate 1;&lt;/P&gt;&lt;P&gt;load 1 as num, 'yes' as str autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YesNoMap:&lt;/P&gt;&lt;P&gt;mapping load num, dual(str, num) resident YesNoMapTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop tables YesNoMapTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP F1 USING YesNoMap;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;load 0 as F1, 'a' as F2 autogenerate 1;&lt;/P&gt;&lt;P&gt;load 1 as F1, 'b' as F2 autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196140_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2018 09:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/map-using-dual/m-p/14376#M996</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-03-13T09:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: map using dual</title>
      <link>https://community.qlik.com/t5/App-Development/map-using-dual/m-p/14377#M997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works, but it seems that you cannot directly use a field value - instead you should use a wrapping function returning values 0 and 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, during your load you should use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Shipped, 1, 0) as Shipped&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; instead of&lt;/P&gt;&lt;P&gt;Shipped&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- &lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 17:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/map-using-dual/m-p/14377#M997</guid>
      <dc:creator>tomasz_l</dc:creator>
      <dc:date>2018-09-12T17:07:07Z</dc:date>
    </item>
  </channel>
</rss>

