<?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: Get Post with null in ODD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Post-with-null-in-ODD/m-p/1759977#M453989</link>
    <description>&lt;P&gt;Yes you can, the ODD() function is a boolean function that only evaluates integers, meaning it will return NULL if you try to evaluate decimals.&lt;/P&gt;&lt;P&gt;You can simply use the following expression to change to outcome:&lt;/P&gt;&lt;P&gt;if(ODD(&amp;lt;insert number field&amp;gt;)=-1, 3,1) AS OddNumber&lt;/P&gt;&lt;P&gt;in natural language: If the number I want to evaluate is an odd number, you're returning the value -1 for true, if that's the case, give me three instead, if it's not give me 1.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Nov 2020 17:23:54 GMT</pubDate>
    <dc:creator>Martijn_W</dc:creator>
    <dc:date>2020-11-09T17:23:54Z</dc:date>
    <item>
      <title>Get Post with null in ODD</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Post-with-null-in-ODD/m-p/1759800#M453983</link>
      <description>&lt;P&gt;Hi, i got a calculation with odd function that gives me -1 or 0 if it's even, but i want to have this null values, can i set some value, like 3 if it's odd in script?&lt;/P&gt;&lt;P&gt;Even get me null and even gets me -1 or 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 11:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Post-with-null-in-ODD/m-p/1759800#M453983</guid>
      <dc:creator>johnan</dc:creator>
      <dc:date>2020-11-09T11:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get Post with null in ODD</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Post-with-null-in-ODD/m-p/1759977#M453989</link>
      <description>&lt;P&gt;Yes you can, the ODD() function is a boolean function that only evaluates integers, meaning it will return NULL if you try to evaluate decimals.&lt;/P&gt;&lt;P&gt;You can simply use the following expression to change to outcome:&lt;/P&gt;&lt;P&gt;if(ODD(&amp;lt;insert number field&amp;gt;)=-1, 3,1) AS OddNumber&lt;/P&gt;&lt;P&gt;in natural language: If the number I want to evaluate is an odd number, you're returning the value -1 for true, if that's the case, give me three instead, if it's not give me 1.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 17:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Post-with-null-in-ODD/m-p/1759977#M453989</guid>
      <dc:creator>Martijn_W</dc:creator>
      <dc:date>2020-11-09T17:23:54Z</dc:date>
    </item>
  </channel>
</rss>

