<?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: Problem with if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/1830950#M1214531</link>
    <description>&lt;P&gt;you may be comparing different data types.&amp;nbsp; i suggest using hour(now()) and compare it with hour(TIMESTAMPFIELD) or maybe you already extracted the hour into a number field, the hour function return an integer and will be same type&lt;/P&gt;</description>
    <pubDate>Tue, 24 Aug 2021 23:46:16 GMT</pubDate>
    <dc:creator>edwin</dc:creator>
    <dc:date>2021-08-24T23:46:16Z</dc:date>
    <item>
      <title>Problem with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/1829999#M1214530</link>
      <description>&lt;P&gt;I have a dataset with current and historical daily data on an hourly basis. The current days data only exists up to current time. Because of this, when comparing the hour by hour information, my chart shows current value = 0 for any time stamp &amp;gt; now. I tried creating a dimension to replace the imported timestamp, but the condition is not taking. Can someone tell me where I am going wrong? The idea is that each value above hour 15 should be NULL and I can use ignore null to remove them from my line chart.&lt;/P&gt;&lt;P&gt;My calculated dimension (far right) is: =if(hour &amp;lt;= Date(Now(),'hh'), hour, NULL())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bsocks_11415_1-1629406760452.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/60482i2B09AB514C7F2D2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bsocks_11415_1-1629406760452.png" alt="bsocks_11415_1-1629406760452.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/1829999#M1214530</guid>
      <dc:creator>bsocks_11415</dc:creator>
      <dc:date>2024-11-15T22:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/1830950#M1214531</link>
      <description>&lt;P&gt;you may be comparing different data types.&amp;nbsp; i suggest using hour(now()) and compare it with hour(TIMESTAMPFIELD) or maybe you already extracted the hour into a number field, the hour function return an integer and will be same type&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 23:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/1830950#M1214531</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-08-24T23:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/1831031#M1214532</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/147930"&gt;@bsocks_11415&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am moving this to the App development board for better visibility&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 08:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-if-statement/m-p/1831031#M1214532</guid>
      <dc:creator>Maria_Halley</dc:creator>
      <dc:date>2021-08-25T08:59:27Z</dc:date>
    </item>
  </channel>
</rss>

