<?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: Force numeric values to text in inline tale in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Force-numeric-values-to-text-in-inline-tale/m-p/1776052#M60160</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;MAP:&lt;BR /&gt;Mapping LOAD&lt;BR /&gt;Product,&lt;BR /&gt;"Product Y/N"&lt;BR /&gt;FROM SSSS1.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Apply2);&lt;/P&gt;&lt;P&gt;TAB1:&lt;BR /&gt;LOAD&lt;BR /&gt;Product,&lt;BR /&gt;ApplyMap('MAP',Product,Product) as Product_YES_NO&lt;BR /&gt;FROM SSS1.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Apply1);&lt;/P&gt;&lt;P&gt;product code table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_0-1611161429609.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47501iA5D84CBFE16E484C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_0-1611161429609.png" alt="Ksrinivasan_0-1611161429609.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;product code with yes / no table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_1-1611161506042.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47502i5CF68ABD91CC7880/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_1-1611161506042.png" alt="Ksrinivasan_1-1611161506042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;result with product table with yes / no&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_2-1611161562322.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47504i0391A06264B019CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_2-1611161562322.png" alt="Ksrinivasan_2-1611161562322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ksrinivasan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2021 16:54:01 GMT</pubDate>
    <dc:creator>Ksrinivasan</dc:creator>
    <dc:date>2021-01-20T16:54:01Z</dc:date>
    <item>
      <title>Force numeric values to text in inline tale</title>
      <link>https://community.qlik.com/t5/App-Development/Force-numeric-values-to-text-in-inline-tale/m-p/1775999#M60154</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Ok, I fixed this issue as I was posting, but I thought I'd continue anyway, as my fix feels like a workaround rather than a proper solution....&lt;/P&gt;&lt;P&gt;The issue is with a Mapping Load of an Inline table of numeric values, which fails to find matches against a text field in the ApplyMap . Here's a basic example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Products:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LOAD * INLINE&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;[&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Product&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;101&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;102&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;103];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ProductMap:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Mapping Load&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Product AS [ProductCode],&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;'Yes' AS [Product YesNo]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;RESIDENT Products;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;DROP TABLE Products;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;ApplyMap('ProductMap', [ProductRef], 'No') AS [Product YesNo];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;FROM PRODUCTS.qvd (qvd);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above worked in Qlikview, but no longer works in Qlik Sense.&lt;/P&gt;&lt;P&gt;In QS, when I add the Product YesNo field to a table in my front end, every single record, including those in the Inline table, returns No. My guess is that QS sees the numeric values in the inline table and classes them as NUM, whereas the Product Number field in the source table is TEXT.&lt;/P&gt;&lt;P&gt;I tried lots of variations on applying TEXT() and NUM() formats, but even if I try to format every instance of the field as TEXT, it still doesn't return any Yes values, e.g. this still doesn't work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Products:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LOAD &lt;FONT color="#FF0000"&gt;TEXT(Product) AS ProductText&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;INLINE [&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Product&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;101&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;102&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;103];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ProductMap:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Mapping Load&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#FF0000"&gt;TEXT([ProductText]) &lt;/FONT&gt;AS [ProductCode],&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;'Yes' AS [Product YesNo]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;RESIDENT Products;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;DROP TABLE Products;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;ApplyMap('ProductMap', &lt;FONT color="#FF0000"&gt;TEXT([ProductRef]),&lt;/FONT&gt; 'No') AS [Product YesNo];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;FROM PRODUCTS.qvd (qvd);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I finally got it working by adding a prefix letter to the field in both the Mapping Load and to the source field we're comparing against in the ApplyMap. I initially did this by prefixing every value in the inline table with a letter A (which also works), but I then found I could just add the prefix character once, to the field in the Mapping Load, so I now have e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Products:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LOAD * INLINE [&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;Product&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;101&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;102&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;103];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ProductMap:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Mapping Load&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT color="#FF0000"&gt;'A' &amp;amp;&lt;/FONT&gt; Product AS [ProductCode],&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;'Yes' AS [Product YesNo]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;RESIDENT Products;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;DROP TABLE Products;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;ApplyMap('ProductMap',&lt;FONT color="#FF0000"&gt; 'A' &amp;amp;&lt;/FONT&gt; [ProductRef], 'No') AS [Product YesNo];&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;FROM PRODUCTS.qvd (qvd);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So thankfully, this fixes my issue, although it&amp;nbsp;feels like a bit of a wonky workaround. Can anyone let me know the 'proper way' to get Qlik to treat those inline numeric values as text?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 13:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Force-numeric-values-to-text-in-inline-tale/m-p/1775999#M60154</guid>
      <dc:creator>gramqlik</dc:creator>
      <dc:date>2021-01-20T13:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Force numeric values to text in inline tale</title>
      <link>https://community.qlik.com/t5/App-Development/Force-numeric-values-to-text-in-inline-tale/m-p/1776052#M60160</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;MAP:&lt;BR /&gt;Mapping LOAD&lt;BR /&gt;Product,&lt;BR /&gt;"Product Y/N"&lt;BR /&gt;FROM SSSS1.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Apply2);&lt;/P&gt;&lt;P&gt;TAB1:&lt;BR /&gt;LOAD&lt;BR /&gt;Product,&lt;BR /&gt;ApplyMap('MAP',Product,Product) as Product_YES_NO&lt;BR /&gt;FROM SSS1.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Apply1);&lt;/P&gt;&lt;P&gt;product code table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_0-1611161429609.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47501iA5D84CBFE16E484C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_0-1611161429609.png" alt="Ksrinivasan_0-1611161429609.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;product code with yes / no table&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_1-1611161506042.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47502i5CF68ABD91CC7880/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_1-1611161506042.png" alt="Ksrinivasan_1-1611161506042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;result with product table with yes / no&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksrinivasan_2-1611161562322.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/47504i0391A06264B019CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksrinivasan_2-1611161562322.png" alt="Ksrinivasan_2-1611161562322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ksrinivasan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 16:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Force-numeric-values-to-text-in-inline-tale/m-p/1776052#M60160</guid>
      <dc:creator>Ksrinivasan</dc:creator>
      <dc:date>2021-01-20T16:54:01Z</dc:date>
    </item>
  </channel>
</rss>

