<?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 Problem with thousand separator when importing XML file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-thousand-separator-when-importing-XML-file/m-p/181816#M47691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing a problem when trying to import an XML file into QV. This XML file contains info from website activity.&lt;/P&gt;&lt;P&gt;I've created a .qvd database form this file. When I try to import it from my .qvw report, it works but I do not manage to have the figures over 999 properly.&lt;/P&gt;&lt;P&gt;They are considered as text - i don't know why, it seems that the thousand separator is not correctly understood.&lt;/P&gt;&lt;P&gt;This is the code that I tried :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Direct_sources:&lt;BR /&gt;LOAD Value,&lt;BR /&gt; if (istext(Value), 'Y', 'N') as flag_text,&lt;BR /&gt; if (isnum(Value), 'Y', 'N') as flag_num,&lt;BR /&gt; replace (text(Value), '', '') as New_value,&lt;BR /&gt; if(istext(Value), replace (text(Value), '', ''), Value) as New_value2,&lt;BR /&gt;&lt;BR /&gt; Label as Date_complete,&lt;BR /&gt; subfield(Label, ' ' ,1) as NomJour,&lt;BR /&gt; subfield(Label, ' ', 2) as Jour,&lt;BR /&gt; subfield(Label, ' ', 3) as Mois,&lt;BR /&gt; subfield(Label, ' ', 4) as Année&lt;BR /&gt;FROM C:\QVData\Source\Direct_sources.qvd (qvd);&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It's a simple 2 columns chart : "Value" is the number of pages viewed and "Label" is the date.&lt;/P&gt;&lt;P&gt;If you have any idea, thank you to let me know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Gaithe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2009 22:34:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-09T22:34:49Z</dc:date>
    <item>
      <title>Problem with thousand separator when importing XML file</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-thousand-separator-when-importing-XML-file/m-p/181816#M47691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing a problem when trying to import an XML file into QV. This XML file contains info from website activity.&lt;/P&gt;&lt;P&gt;I've created a .qvd database form this file. When I try to import it from my .qvw report, it works but I do not manage to have the figures over 999 properly.&lt;/P&gt;&lt;P&gt;They are considered as text - i don't know why, it seems that the thousand separator is not correctly understood.&lt;/P&gt;&lt;P&gt;This is the code that I tried :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Direct_sources:&lt;BR /&gt;LOAD Value,&lt;BR /&gt; if (istext(Value), 'Y', 'N') as flag_text,&lt;BR /&gt; if (isnum(Value), 'Y', 'N') as flag_num,&lt;BR /&gt; replace (text(Value), '', '') as New_value,&lt;BR /&gt; if(istext(Value), replace (text(Value), '', ''), Value) as New_value2,&lt;BR /&gt;&lt;BR /&gt; Label as Date_complete,&lt;BR /&gt; subfield(Label, ' ' ,1) as NomJour,&lt;BR /&gt; subfield(Label, ' ', 2) as Jour,&lt;BR /&gt; subfield(Label, ' ', 3) as Mois,&lt;BR /&gt; subfield(Label, ' ', 4) as Année&lt;BR /&gt;FROM C:\QVData\Source\Direct_sources.qvd (qvd);&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It's a simple 2 columns chart : "Value" is the number of pages viewed and "Label" is the date.&lt;/P&gt;&lt;P&gt;If you have any idea, thank you to let me know...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Gaithe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 22:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-thousand-separator-when-importing-XML-file/m-p/181816#M47691</guid>
      <dc:creator />
      <dc:date>2009-12-09T22:34:49Z</dc:date>
    </item>
  </channel>
</rss>

