<?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 Question about Mapping and Dual in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-about-Mapping-and-Dual/m-p/492695#M689552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="margin-bottom: 8px;"&gt;&lt;DIV style="margin-top: -7px; padding: 0 4px 4px;"&gt;&lt;DIV style="background-color: #f5f5f5; margin-bottom: 8px;"&gt;&lt;DIV class="almost_half_cell"&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en" style="font-size: 16px; color: #222222; padding: 8px;"&gt;&lt;SPAN style="line-height: 1.5em; color: #575757; font-size: 10pt; background-color: transparent;"&gt;&lt;BR /&gt;The Script below works well. But I have a question, why do I get 0 and 1 as the outcome in the table &lt;SPAN style="background-color: #f5f5f5;"&gt;and not the text Purchase and Sales&lt;/SPAN&gt; when I use the original fieldname [Entry Type]? If I create a new field [Entry Type Dual] I do get the expected result with the text!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;EntryTypeMap:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;EntryTypeNum, EntryTypeDesc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0, Purchase&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Sales&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ItemLedgerEntry;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(ApplyMap('EntryTypeMap', [Entry Type]), [Entry Type]) as&amp;nbsp; [Entry Type Dual],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(ApplyMap('EntryTypeMap', [Entry Type]), [Entry Type]) as&amp;nbsp; [Entry Type]&lt;/P&gt;&lt;P&gt;Residend abc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Nov 2013 11:19:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-26T11:19:42Z</dc:date>
    <item>
      <title>Question about Mapping and Dual</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-Mapping-and-Dual/m-p/492695#M689552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="margin-bottom: 8px;"&gt;&lt;DIV style="margin-top: -7px; padding: 0 4px 4px;"&gt;&lt;DIV style="background-color: #f5f5f5; margin-bottom: 8px;"&gt;&lt;DIV class="almost_half_cell"&gt;&lt;DIV dir="ltr"&gt;&lt;SPAN lang="en" style="font-size: 16px; color: #222222; padding: 8px;"&gt;&lt;SPAN style="line-height: 1.5em; color: #575757; font-size: 10pt; background-color: transparent;"&gt;&lt;BR /&gt;The Script below works well. But I have a question, why do I get 0 and 1 as the outcome in the table &lt;SPAN style="background-color: #f5f5f5;"&gt;and not the text Purchase and Sales&lt;/SPAN&gt; when I use the original fieldname [Entry Type]? If I create a new field [Entry Type Dual] I do get the expected result with the text!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;EntryTypeMap:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;EntryTypeNum, EntryTypeDesc&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0, Purchase&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, Sales&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ItemLedgerEntry;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(ApplyMap('EntryTypeMap', [Entry Type]), [Entry Type]) as&amp;nbsp; [Entry Type Dual],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(ApplyMap('EntryTypeMap', [Entry Type]), [Entry Type]) as&amp;nbsp; [Entry Type]&lt;/P&gt;&lt;P&gt;Residend abc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 11:19:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-Mapping-and-Dual/m-p/492695#M689552</guid>
      <dc:creator />
      <dc:date>2013-11-26T11:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Mapping and Dual</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-Mapping-and-Dual/m-p/492696#M689553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerrit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView will always decide the number formatting of a field the first time this field is loaded. So because of the facts that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) QlikView has identified this fieldname with the NUM-format when it first loaded this field.&lt;/P&gt;&lt;P&gt;2) you are reusing this fieldname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;; QlikView will use the NUM-format as the default format for your dual-value. This also explains that when you give the field another name, it does use the TEXT-format as default (as it usually does with dual-values).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 11:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-Mapping-and-Dual/m-p/492696#M689553</guid>
      <dc:creator>matthias_v</dc:creator>
      <dc:date>2013-11-26T11:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Mapping and Dual</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-Mapping-and-Dual/m-p/492697#M689554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure about that one, I don't think this is possible. You can however use a renamed field as the inputfield for your applymap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.G.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ItemLedgerEntry;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tt_EntryType&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as EntryTypeCode,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(ApplyMap('EntryTypeMap', tt_EntryType), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;tt_EntryType&lt;/SPAN&gt;) as&amp;nbsp; [Entry Type]&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Residend abc;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DROP FIELD tt_EntryType FROM &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;ItemLedgerEntry&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Offcourse this implicates that you do a rename to tt_EntryType on your original load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 11:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-Mapping-and-Dual/m-p/492697#M689554</guid>
      <dc:creator>matthias_v</dc:creator>
      <dc:date>2013-11-26T11:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Mapping and Dual</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-Mapping-and-Dual/m-p/492698#M689555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Matthias,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Ok, I can achieve that via a workaround.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;But I can also live with the renamed field in my original solution, I was just curious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Gerrit&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin: 26px 0 -10px; font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-helpful" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/100176?start=0&amp;amp;tstart=0" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-family: inherit; color: #3778c7; background-color: #f3f3f3;"&gt;Question about Mapping and Dual&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 12:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-Mapping-and-Dual/m-p/492698#M689555</guid>
      <dc:creator />
      <dc:date>2013-11-26T12:39:38Z</dc:date>
    </item>
  </channel>
</rss>

