<?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 Number format is not preserved while exporting the data. in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Number-format-is-not-preserved-while-exporting-the-data/m-p/1344166#M7682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, When the data is exported using below method, the formatting is not preserved in the exported data as shown below. Could anyone please help me out here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code to export the data of existing visualization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14936550977843480 jive_text_macro" jivemacro_uid="_14936550977843480" modifiedtitle="true"&gt;
&lt;P&gt;var Export = function () {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; table.OnData.unbind(Export);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; table.exportData({ format: 'OOXML', download: false }, function (link) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; window.open('http' + (config.isSecure ? 's' : '') + '://' + config.host + ':' + config.port + link, '_blank');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;};&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;app.visualization.get($(chart).attr('data-qlik-objid')).then(function (visual) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; table = qlik.table(visual.model);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Export();&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exported data shown without formatting in excel.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="excel.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161784_excel.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Number format shown properly in the visualization.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chart.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/161785_chart.PNG" style="height: 184px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 May 2017 16:15:08 GMT</pubDate>
    <dc:creator>s29124141</dc:creator>
    <dc:date>2017-05-01T16:15:08Z</dc:date>
    <item>
      <title>Number format is not preserved while exporting the data.</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Number-format-is-not-preserved-while-exporting-the-data/m-p/1344166#M7682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, When the data is exported using below method, the formatting is not preserved in the exported data as shown below. Could anyone please help me out here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code to export the data of existing visualization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14936550977843480 jive_text_macro" jivemacro_uid="_14936550977843480" modifiedtitle="true"&gt;
&lt;P&gt;var Export = function () {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; table.OnData.unbind(Export);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; table.exportData({ format: 'OOXML', download: false }, function (link) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; window.open('http' + (config.isSecure ? 's' : '') + '://' + config.host + ':' + config.port + link, '_blank');&lt;/P&gt;
&lt;P&gt;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;};&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;app.visualization.get($(chart).attr('data-qlik-objid')).then(function (visual) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; table = qlik.table(visual.model);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Export();&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exported data shown without formatting in excel.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="excel.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/161784_excel.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Number format shown properly in the visualization.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chart.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/161785_chart.PNG" style="height: 184px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 May 2017 16:15:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Number-format-is-not-preserved-while-exporting-the-data/m-p/1344166#M7682</guid>
      <dc:creator>s29124141</dc:creator>
      <dc:date>2017-05-01T16:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Number format is not preserved while exporting the data.</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Number-format-is-not-preserved-while-exporting-the-data/m-p/1344167#M7683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlik we have the Dual format that contains the text value and the numerical value of a data point.&lt;/P&gt;&lt;P&gt;In this case the textual value is what you see on the screen but the underlying numerical value is what gets exported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A workaround is to wrap your expression in Text() or Money() to force Qlik to use the textual representation of the number for export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See: &lt;A href="https://community.qlikview.com/thread/246172" title="https://community.qlikview.com/thread/246172"&gt;Qlik Export Method | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 May 2017 17:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Number-format-is-not-preserved-while-exporting-the-data/m-p/1344167#M7683</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2017-05-01T17:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Number format is not preserved while exporting the data.</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Number-format-is-not-preserved-while-exporting-the-data/m-p/1594745#M10820</link>
      <description>&lt;P&gt;Hey, I'm trying to get the kpi formatted value, but I can only get the numerical value from the app.vizualition callback.&lt;/P&gt;&lt;P&gt;How can I use that Text() method on a mashup?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 20:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Number-format-is-not-preserved-while-exporting-the-data/m-p/1594745#M10820</guid>
      <dc:creator>DouglasR</dc:creator>
      <dc:date>2019-06-21T20:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Number format is not preserved while exporting the data.</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Number-format-is-not-preserved-while-exporting-the-data/m-p/1594748#M10821</link>
      <description>&lt;P&gt;Just for a little more info, what I want to do is get the kpi values as is on the graphics, so I can use those formatted values on mashup. I am not actually showing those graphics on my webpage&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 20:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Number-format-is-not-preserved-while-exporting-the-data/m-p/1594748#M10821</guid>
      <dc:creator>DouglasR</dc:creator>
      <dc:date>2019-06-21T20:30:39Z</dc:date>
    </item>
  </channel>
</rss>

