<?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 Table doesn't save number format in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Table-doesn-t-save-number-format/m-p/2424286#M13420</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a script where I format some numbers before saving the table into a .qvd. When debugging the script and looking at the table in the data model, the formatting is correct, but after saving the table it doesn't match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The original table contains raw data that is displayed as e.g 10.99000. I format the number using Num(price, '###0.00') (not sure if it's the correct, but it display exactly what I need, I just tweaked it until I got it right)&lt;/P&gt;
&lt;P&gt;The output is 10.99. When I open the .qvd the price is saved just like the original raw data table: 10.99000&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 19:25:25 GMT</pubDate>
    <dc:creator>pedrohenriqueperna</dc:creator>
    <dc:date>2024-02-27T19:25:25Z</dc:date>
    <item>
      <title>Table doesn't save number format</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Table-doesn-t-save-number-format/m-p/2424286#M13420</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a script where I format some numbers before saving the table into a .qvd. When debugging the script and looking at the table in the data model, the formatting is correct, but after saving the table it doesn't match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The original table contains raw data that is displayed as e.g 10.99000. I format the number using Num(price, '###0.00') (not sure if it's the correct, but it display exactly what I need, I just tweaked it until I got it right)&lt;/P&gt;
&lt;P&gt;The output is 10.99. When I open the .qvd the price is saved just like the original raw data table: 10.99000&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 19:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Table-doesn-t-save-number-format/m-p/2424286#M13420</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-02-27T19:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Table doesn't save number format</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Table-doesn-t-save-number-format/m-p/2424293#M13421</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;Num(Num#("10.99000", '#,##0.00000'), '#,##0.00')&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 20:19:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Table-doesn-t-save-number-format/m-p/2424293#M13421</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-02-27T20:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table doesn't save number format</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Table-doesn-t-save-number-format/m-p/2424760#M13424</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&lt;/P&gt;
&lt;P&gt;Unfortunately it didn't work...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've been tweaking it around trying to make it work and I noticed something really strange.&lt;/P&gt;
&lt;P&gt;If I format the field with:&lt;/P&gt;
&lt;P&gt;Num(price, '#,00') as price&lt;/P&gt;
&lt;P&gt;...nothing happens. The value is not formatted at all. But if I save the field with a different name, lets say:&lt;/P&gt;
&lt;P&gt;Num(price, '#,00') as price_new&lt;/P&gt;
&lt;P&gt;It works as expected!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is going on? Is this a bug?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 14:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Table-doesn-t-save-number-format/m-p/2424760#M13424</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-02-28T14:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Table doesn't save number format</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Table-doesn-t-save-number-format/m-p/2424858#M13429</link>
      <description>&lt;P&gt;Ensure that there are no other fields in your data model with the same name as "price."&lt;/P&gt;
&lt;P&gt;Provide the script and sample data for a clearer understanding.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 17:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Table-doesn-t-save-number-format/m-p/2424858#M13429</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2024-02-28T17:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Table doesn't save number format</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Table-doesn-t-save-number-format/m-p/2424860#M13430</link>
      <description>&lt;P&gt;I found a post that gave me an insight. Num() function treats the field as a dual value, so saving it with the same name will persist the original formatting.&lt;/P&gt;
&lt;P&gt;I managed to fix my problem by saving it as a new field, dropping the old one and renaming the new field to the previous name: price as price_new &amp;gt; rename price_new to price.&lt;/P&gt;
&lt;P&gt;Thanks for your help though.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 17:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Table-doesn-t-save-number-format/m-p/2424860#M13430</guid>
      <dc:creator>pedrohenriqueperna</dc:creator>
      <dc:date>2024-02-28T17:22:11Z</dc:date>
    </item>
  </channel>
</rss>

