<?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: Flagging numerical data incidentally loaded with text in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Flagging-numerical-data-incidentally-loaded-with-text/m-p/1414213#M427378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this would eliminate the entire value if it was a combination of numerical and text data. Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouldn't want to lose the numerical data included in a value that fails this test.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Oct 2017 17:17:09 GMT</pubDate>
    <dc:creator>jason_nicholas</dc:creator>
    <dc:date>2017-10-23T17:17:09Z</dc:date>
    <item>
      <title>Flagging numerical data incidentally loaded with text</title>
      <link>https://community.qlik.com/t5/QlikView/Flagging-numerical-data-incidentally-loaded-with-text/m-p/1414210#M427375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a way to extract numerical data only from a field which may have numerical and text data at the same time. I would like to do this during the initial load, if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a source data field which provides a dollar value. However, if a specific field is used in the source application, a text string is appended to this numerical data. If my dollar value is $2000, and someone adds a discount percentage in a field designated for that data, the string comes out as "$2000 with 30% discount". When this happens, it is not read as numerical data and the calculation is impacted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is load only numerical data from the field, and disregard any potential text. Is there a simple function I can use in my load script to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, is there a way to tell QV to expect numerical data only, and flag if the data in that field doesn't conform? Thanks for the advice!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 16:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flagging-numerical-data-incidentally-loaded-with-text/m-p/1414210#M427375</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-10-23T16:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging numerical data incidentally loaded with text</title>
      <link>https://community.qlik.com/t5/QlikView/Flagging-numerical-data-incidentally-loaded-with-text/m-p/1414211#M427376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use like&lt;/P&gt;&lt;P&gt;IF(ISNum(YourfieldName) = -1, YourFieldName) AS YourFieldName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR creating a flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;IF(ISNum(YourfieldName) = -1, 1, 0) AS IsNumFlag&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 16:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flagging-numerical-data-incidentally-loaded-with-text/m-p/1414211#M427376</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-10-23T16:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging numerical data incidentally loaded with text</title>
      <link>https://community.qlik.com/t5/QlikView/Flagging-numerical-data-incidentally-loaded-with-text/m-p/1414212#M427377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your dollar amounts are always at the beginning of the field value and the potential text starts separated by a space, you can do it like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Subfield(FIELD, ' ', 1) as FIELD,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your numbers are not automatically interpreted correctly, you can set a format string for your money amounts at the beginning of the script and use Money#() function to interpret:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Money#(Subfield(FIELD, ' ', 1)) as FIELD,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM ....;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/InterpretationFunctions/money_hash.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/InterpretationFunctions/money_hash.htm"&gt;Money# ‒ QlikView&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/StringFunctions/SubField.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/StringFunctions/SubField.htm"&gt;SubField ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 16:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flagging-numerical-data-incidentally-loaded-with-text/m-p/1414212#M427377</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-10-23T16:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging numerical data incidentally loaded with text</title>
      <link>https://community.qlik.com/t5/QlikView/Flagging-numerical-data-incidentally-loaded-with-text/m-p/1414213#M427378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this would eliminate the entire value if it was a combination of numerical and text data. Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouldn't want to lose the numerical data included in a value that fails this test.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 17:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flagging-numerical-data-incidentally-loaded-with-text/m-p/1414213#M427378</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-10-23T17:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flagging numerical data incidentally loaded with text</title>
      <link>https://community.qlik.com/t5/QlikView/Flagging-numerical-data-incidentally-loaded-with-text/m-p/1414214#M427379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. SubField is what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 17:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flagging-numerical-data-incidentally-loaded-with-text/m-p/1414214#M427379</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-10-23T17:17:52Z</dc:date>
    </item>
  </channel>
</rss>

