<?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: How to get subscripts from an Excel column to appear in QlikView? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-subscripts-from-an-Excel-column-to-appear-in-QlikView/m-p/1822693#M1213695</link>
    <description>&lt;P&gt;What happens if you use: text(MyField) as myField&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 11:48:07 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2021-07-16T11:48:07Z</dc:date>
    <item>
      <title>How to get subscripts from an Excel column to appear in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-subscripts-from-an-Excel-column-to-appear-in-QlikView/m-p/1822609#M1213688</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an Excel with some chemical elements and their values, but when I load that in edit script all the subscripts of the elements gets converted to normal strings (like NO_2 -&amp;gt; NO2), how could I preserve the subscripts from that Excel to appear in QlikView as well? I know I can use ASCII to use subscripts but I can't use it when showing the columns in tables etc.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 06:07:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-subscripts-from-an-Excel-column-to-appear-in-QlikView/m-p/1822609#M1213688</guid>
      <dc:creator>pgkrsk</dc:creator>
      <dc:date>2021-07-16T06:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get subscripts from an Excel column to appear in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-subscripts-from-an-Excel-column-to-appear-in-QlikView/m-p/1822653#M1213691</link>
      <description>&lt;P&gt;Hi Pgkrsk&lt;/P&gt;&lt;P&gt;I've just tried to replicate this, and while I am able to generate subscripts typing directly in Qlik, it seems that they do not import correctly in excel.&lt;/P&gt;&lt;P&gt;I know in Excel you can create the subscript by applying formatting, which makes me wonder if excel saves the formatting, rather than the unicode symbol.&lt;/P&gt;&lt;P&gt;Writing the subscript using an actual character seems to solve the problem - below is an example loaded into qlik - "X2" is using the actual character. "X3 Y4" were created using excel formatting which confirms my suspicion!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PiEye_0-1626425945842.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58717i76440DAB2B9056F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PiEye_0-1626425945842.png" alt="PiEye_0-1626425945842.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So you now have 3 options - either use the correct character in your excel input, use a lookup table to match the symbols to the correct representation or you can use a Qlik mapping function to convert all numbers to subscript:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;MapSubScript:&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;MAPPING LOAD * INLINE [&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;InputNumber,OutputSubscript&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;1,₁&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;2,₂&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;3,₃&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;4,₄&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;5,₅&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;6,₆&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;7,₇&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;8,₈&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;9,₉&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;0,₀&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;subs,&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;MapSubString('MapSubScript', subs) as MappedSubScript&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;FROM [$(vFile)] (ooxml, embedded labels, table is Sheet1);&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;Here I've used MapSubString to pick out any numbers and replace them with their subscript equivalents.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000000"&gt;This is the result:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PiEye_1-1626426143621.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58718i57A34F107FBDF51E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PiEye_1-1626426143621.png" alt="PiEye_1-1626426143621.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Pi&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 09:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-subscripts-from-an-Excel-column-to-appear-in-QlikView/m-p/1822653#M1213691</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-16T09:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get subscripts from an Excel column to appear in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-subscripts-from-an-Excel-column-to-appear-in-QlikView/m-p/1822693#M1213695</link>
      <description>&lt;P&gt;What happens if you use: text(MyField) as myField&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 11:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-subscripts-from-an-Excel-column-to-appear-in-QlikView/m-p/1822693#M1213695</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-07-16T11:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get subscripts from an Excel column to appear in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-subscripts-from-an-Excel-column-to-appear-in-QlikView/m-p/1822706#M1213697</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I tried replying earlier, but it seems my response didn't save for some reason.&lt;/P&gt;&lt;P&gt;Essentially Excel is using formatting to define the subscripts, and not the actual ascii . UTF character.&lt;/P&gt;&lt;P&gt;In this case, we have a few options:&lt;/P&gt;&lt;P&gt;1 - ensure that you use the actual character and not formatting in excel, to apply the subscript&lt;/P&gt;&lt;P&gt;2 - create some sort of lookup table in excel&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;3 - create a mapping table to convert all numbers and apply this using mapsubstring:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MapSubScript:&lt;BR /&gt;MAPPING LOAD * INLINE [&lt;BR /&gt;InputNumber,OutputSubscript&lt;BR /&gt;1,₁&lt;BR /&gt;2,₂&lt;BR /&gt;3,₃&lt;BR /&gt;4,₄&lt;BR /&gt;5,₅&lt;BR /&gt;6,₆&lt;BR /&gt;7,₇&lt;BR /&gt;8,₈&lt;BR /&gt;9,₉&lt;BR /&gt;0,₀&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;subs,&lt;BR /&gt;MapSubString('MapSubScript', subs) as MappedSubScript&lt;BR /&gt;FROM [$(vFile)] (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the above example I have loaded a table from excel with both a formatted subscript (X3 Y4) and a "character subscript" (X2) and applied the mapping. This is the result. as you can see the character subscript ingests fine, but qlik wont apply the formatting from excel&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PiEye_0-1626437344617.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58734iBF8961BCB55A4786/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PiEye_0-1626437344617.png" alt="PiEye_0-1626437344617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Pi&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 12:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-subscripts-from-an-Excel-column-to-appear-in-QlikView/m-p/1822706#M1213697</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-16T12:10:00Z</dc:date>
    </item>
  </channel>
</rss>

