<?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: Dividing field by any number returns null in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550216#M39652</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Andrei,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That worked perfectly, thank you so much! Never even though of that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 05:19:58 GMT</pubDate>
    <dc:creator>HeinriG</dc:creator>
    <dc:date>2019-02-28T05:19:58Z</dc:date>
    <item>
      <title>Dividing field by any number returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550205#M39647</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've been really stuck with this problem, the DefaultValue field returns the correct value (1.5) if no division is done but returns null if I divide by 24.0 (or any number).&amp;nbsp; &amp;nbsp;If I enter 1.5/24.0 in its place it also returns the correct value, so I'm not at all sure whats going on. Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;Here is the line from the script (just for clarity, the problem only occurs for rows that contain 'hrs' and make the if return true):&lt;/P&gt;&lt;P&gt;if(WildMatch(Description, '*hrs*'),DefaultValue/24.0,DefaultValue) as Target&lt;/P&gt;&lt;P&gt;Please let me know if you need more information, thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550205#M39647</guid>
      <dc:creator>HeinriG</dc:creator>
      <dc:date>2024-11-16T21:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing field by any number returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550208#M39649</link>
      <description>I just checked, the same thing happens when I simply load:&lt;BR /&gt;&lt;BR /&gt;DefaultValue/2 as Test&lt;BR /&gt;&lt;BR /&gt;It just returns a column filled with null values</description>
      <pubDate>Thu, 28 Feb 2019 05:00:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550208#M39649</guid>
      <dc:creator>HeinriG</dc:creator>
      <dc:date>2019-02-28T05:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing field by any number returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550212#M39650</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Well, most likely your DefaultValue is just a text, try explicitly to convert it to numeric with num#(DefaultValue) function.&lt;/P&gt;&lt;P&gt;If the number has certain format, specify it like NUM#(DefaultValue,'#,###.00')...&lt;/P&gt;&lt;P&gt;You can quickly understand if it's a text or number by looking at it in table viewer (preview): if it's aligned to the right = number, to the left = text.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;//Andrei&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 05:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550212#M39650</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2019-02-28T05:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing field by any number returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550216#M39652</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Andrei,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That worked perfectly, thank you so much! Never even though of that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 05:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550216#M39652</guid>
      <dc:creator>HeinriG</dc:creator>
      <dc:date>2019-02-28T05:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing field by any number returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550217#M39653</link>
      <description>&lt;P&gt;Check your system variables&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;BR /&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;I suspect your DefaultValue has different to your settings...&lt;/P&gt;&lt;P&gt;//Andrei&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 05:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550217#M39653</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2019-02-28T05:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dividing field by any number returns null</title>
      <link>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550219#M39654</link>
      <description>&lt;P&gt;I did try that earlier but it didn't seem to work for whatever reason. But with the num#() I can be sure it works.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 05:25:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dividing-field-by-any-number-returns-null/m-p/1550219#M39654</guid>
      <dc:creator>HeinriG</dc:creator>
      <dc:date>2019-02-28T05:25:36Z</dc:date>
    </item>
  </channel>
</rss>

