<?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 If Null expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Null-expression/m-p/1605344#M596385</link>
    <description>&lt;P&gt;Hi everyone - looking to get some help with this expression&lt;/P&gt;&lt;P&gt;What I'm trying to show is a value of the vMaxSelectedDate calculation if the first calculation shows a null.&lt;/P&gt;&lt;P&gt;The first calculation takes the last day of the month&lt;/P&gt;&lt;P&gt;The second calculation takes the last selected day of the month.&lt;/P&gt;&lt;P&gt;I hope the below expression is clear for you to read. Please let me know if there are any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if((sum({$&amp;lt;LAST_WORKING_DAY_MONTH={1},FactTypeID={1},bRentable={Y}&amp;gt;}dcMonthlyRate*Occ_Flag)&lt;BR /&gt;/&lt;BR /&gt;sum({$&amp;lt;LAST_WORKING_DAY_MONTH={1},FactTypeID={1},bRentable={Y}&amp;gt;}Occ_Flag)) &amp;lt;=0,&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;Date={'$(vMaxSelectedDate)'}&amp;gt;}dcMonthlyRate*Occ_Flag)&lt;BR /&gt;/&lt;BR /&gt;sum({$&amp;lt;FactTypeID={1},bRentable={Y},Date={'$(vMaxSelectedDate)'}&amp;gt;}Occ_Flag)),&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;LAST_WORKING_DAY_MONTH={1},FactTypeID={1},bRentable={Y}&amp;gt;}dcMonthlyRate*Occ_Flag)&lt;BR /&gt;/&lt;BR /&gt;sum({$&amp;lt;LAST_WORKING_DAY_MONTH={1},FactTypeID={1},bRentable={Y}&amp;gt;}Occ_Flag)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result I get shows the months up to the last selected month, at which point it shows a null value.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:55:31 GMT</pubDate>
    <dc:creator>Stickman</dc:creator>
    <dc:date>2024-11-16T02:55:31Z</dc:date>
    <item>
      <title>If Null expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-expression/m-p/1605344#M596385</link>
      <description>&lt;P&gt;Hi everyone - looking to get some help with this expression&lt;/P&gt;&lt;P&gt;What I'm trying to show is a value of the vMaxSelectedDate calculation if the first calculation shows a null.&lt;/P&gt;&lt;P&gt;The first calculation takes the last day of the month&lt;/P&gt;&lt;P&gt;The second calculation takes the last selected day of the month.&lt;/P&gt;&lt;P&gt;I hope the below expression is clear for you to read. Please let me know if there are any questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if((sum({$&amp;lt;LAST_WORKING_DAY_MONTH={1},FactTypeID={1},bRentable={Y}&amp;gt;}dcMonthlyRate*Occ_Flag)&lt;BR /&gt;/&lt;BR /&gt;sum({$&amp;lt;LAST_WORKING_DAY_MONTH={1},FactTypeID={1},bRentable={Y}&amp;gt;}Occ_Flag)) &amp;lt;=0,&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;Date={'$(vMaxSelectedDate)'}&amp;gt;}dcMonthlyRate*Occ_Flag)&lt;BR /&gt;/&lt;BR /&gt;sum({$&amp;lt;FactTypeID={1},bRentable={Y},Date={'$(vMaxSelectedDate)'}&amp;gt;}Occ_Flag)),&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;LAST_WORKING_DAY_MONTH={1},FactTypeID={1},bRentable={Y}&amp;gt;}dcMonthlyRate*Occ_Flag)&lt;BR /&gt;/&lt;BR /&gt;sum({$&amp;lt;LAST_WORKING_DAY_MONTH={1},FactTypeID={1},bRentable={Y}&amp;gt;}Occ_Flag)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result I get shows the months up to the last selected month, at which point it shows a null value.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-expression/m-p/1605344#M596385</guid>
      <dc:creator>Stickman</dc:creator>
      <dc:date>2024-11-16T02:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: If Null expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Null-expression/m-p/1612656#M596386</link>
      <description>&lt;P&gt;It will likely help if you can attach the qvw file or a sample one with the data model etc. as well.&amp;nbsp; This generally makes it easier for folks to help, as they can look everything over to be sure they are providing the correct solution...&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 21:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Null-expression/m-p/1612656#M596386</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-14T21:41:45Z</dc:date>
    </item>
  </channel>
</rss>

