<?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: Restrict calculation based on Null date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919039#M75576</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In Qlikview you can suppress Null values by selecting check box 'Suppress When Value is Null' on the dimension tab&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vchuprina_0-1650093294104.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77226iEF82A262088842D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vchuprina_0-1650093294104.png" alt="vchuprina_0-1650093294104.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In QlikSense it works in the same way - deselect 'Include null values' checkbox in your dimension&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vchuprina_1-1650093349292.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77227i76E4579F7DD56D92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vchuprina_1-1650093349292.png" alt="vchuprina_1-1650093349292.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vitalii&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Apr 2022 07:14:33 GMT</pubDate>
    <dc:creator>vchuprina</dc:creator>
    <dc:date>2022-04-16T07:14:33Z</dc:date>
    <item>
      <title>Restrict calculation based on Null date</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1918997#M75569</link>
      <description>&lt;P&gt;How to restrict output based on null date value??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 19:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1918997#M75569</guid>
      <dc:creator>tsachdev421</dc:creator>
      <dc:date>2022-04-15T19:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict calculation based on Null date</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919039#M75576</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In Qlikview you can suppress Null values by selecting check box 'Suppress When Value is Null' on the dimension tab&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vchuprina_0-1650093294104.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77226iEF82A262088842D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vchuprina_0-1650093294104.png" alt="vchuprina_0-1650093294104.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In QlikSense it works in the same way - deselect 'Include null values' checkbox in your dimension&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vchuprina_1-1650093349292.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/77227i76E4579F7DD56D92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vchuprina_1-1650093349292.png" alt="vchuprina_1-1650093349292.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vitalii&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 07:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919039#M75576</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2022-04-16T07:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict calculation based on Null date</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919043#M75577</link>
      <description>&lt;P&gt;That works on dimensions not measures. Please refer the image i have attached of the problem.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 07:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919043#M75577</guid>
      <dc:creator>tsachdev421</dc:creator>
      <dc:date>2022-04-16T07:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict calculation based on Null date</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919046#M75579</link>
      <description>&lt;P&gt;The solution of &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/47436"&gt;@vchuprina&lt;/a&gt;&amp;nbsp;will work as long you have the [Date 2] as a dimension in your object. If you don't want the dimension in your object then you can solve this by using SET analysis.&lt;/P&gt;
&lt;P&gt;Try something&amp;nbsp; like this:&amp;nbsp;&amp;nbsp;&lt;EM&gt;SUM({&amp;lt;[Date 2]*={"*"}&amp;gt;}Sales)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 07:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919046#M75579</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-04-16T07:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict calculation based on Null date</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919048#M75580</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Thanks for taking out time to look into this. Not using Date2 as dimension in my chart. Plus is there anyway? I can use existing variable $(=$(vSales(utilisation)) and restrict data of null dates.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I have tried creating a flag for null dates. But using this variable within set analysis is giving me some error.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 07:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919048#M75580</guid>
      <dc:creator>tsachdev421</dc:creator>
      <dc:date>2022-04-16T07:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict calculation based on Null date</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919054#M75582</link>
      <description>&lt;P&gt;I assume that your dollar expanded variable will result inbsome kind of aggregating function, let's call it Sum({$}X)&lt;/P&gt;
&lt;P&gt;There is no way to insert additional modifiers into that expression without modifying the variable it self. You could however try to wrap en additional aggregation function, eg. Sum(), around it there get your desired result, but to do do that you need to create an array of values from your variable expression by using the &lt;A href="https://help.qlik.com/en-US/sense/February2022/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/aggr.htm" target="_self"&gt;aggr()&lt;/A&gt; function.&lt;/P&gt;
&lt;P&gt;It would look something&amp;nbsp; like this&lt;/P&gt;
&lt;P&gt;SUM({${...}}AGGR(SUM({$}X),[Dim1],[Dim2],[DimN]))&lt;/P&gt;
&lt;P&gt;Where Dim1-N is the dimensions used for your inner aggregation. I guess that you might be helped by something like this:&lt;/P&gt;
&lt;P&gt;SUM({&amp;lt;[Date 2]*={"*"}&amp;gt;}AGGR($(=$(vSales(utilisation)),[Date 1],[Date 2]))&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 08:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919054#M75582</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-04-16T08:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict calculation based on Null date</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919059#M75583</link>
      <description>&lt;P&gt;I guess, I'm close to the expected result..&lt;/P&gt;
&lt;P&gt;In the backend I have setup a Flag&lt;/P&gt;
&lt;P&gt;Isnull(Date2) as DateFlag..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the frontend i used an expression&lt;/P&gt;
&lt;P&gt;SUM({&amp;lt;DateFlag={'0'}&amp;gt;}AGGR($(=$(vSales(utilisation)),[Date 2],[Region]))&lt;/P&gt;
&lt;P&gt;I could see the total &lt;STRONG&gt;1400&lt;/STRONG&gt; but when apply the same expression in table chart output is 2800&amp;nbsp;&lt;SPAN&gt;(Country+region)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Country= region 1+ region 2+ region 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 09:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919059#M75583</guid>
      <dc:creator>tsachdev421</dc:creator>
      <dc:date>2022-04-16T09:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict calculation based on Null date</title>
      <link>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919060#M75584</link>
      <description>&lt;P&gt;Could you please share your data model and expression in variable&lt;SPAN&gt;$(vSales(utilisation))&lt;/SPAN&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have Date2 and Sales field in one table, you can just create a new sales column and update your expression&lt;/P&gt;
&lt;P&gt;if(isnull(Date2), null(), Sales) as Sales2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vitalii&lt;/P&gt;</description>
      <pubDate>Sat, 16 Apr 2022 09:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Restrict-calculation-based-on-Null-date/m-p/1919060#M75584</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2022-04-16T09:24:35Z</dc:date>
    </item>
  </channel>
</rss>

