<?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 Set Analysis Ignoring selections with default in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640605#M447146</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SA_2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22504i631839E4D0509499/image-size/large?v=v2&amp;amp;px=999" role="button" title="SA_2.png" alt="SA_2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SA_3.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22505i676731AA3AB630AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="SA_3.png" alt="SA_3.png" /&gt;&lt;/span&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an expression with a default Open orders period, and ignoring Invoice dates selections.&lt;/P&gt;&lt;P&gt;sum({&amp;lt;InvoiceYear=, InvoiceQuarter=, InvoiceMonth=, InvoiceWeek=, InvoiceDate=,OpenYear=, OpenQuarter=, OpenMonth=, OpenWeek=, OpenDate=, OpenDateKey={"&amp;gt;=$(=Num(YearStart(Max(OpenDateKey)))) &amp;lt;=$(=Max(OpenDateKey))"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The issue is: selection of Invoice year is not ignored when Open period&amp;nbsp; is selected by a user.&lt;BR /&gt;Can someone please explain why?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:47:51 GMT</pubDate>
    <dc:creator>dana</dc:creator>
    <dc:date>2024-11-16T19:47:51Z</dc:date>
    <item>
      <title>Set Analysis Ignoring selections with default</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640605#M447146</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SA_2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22504i631839E4D0509499/image-size/large?v=v2&amp;amp;px=999" role="button" title="SA_2.png" alt="SA_2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SA_3.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22505i676731AA3AB630AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="SA_3.png" alt="SA_3.png" /&gt;&lt;/span&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an expression with a default Open orders period, and ignoring Invoice dates selections.&lt;/P&gt;&lt;P&gt;sum({&amp;lt;InvoiceYear=, InvoiceQuarter=, InvoiceMonth=, InvoiceWeek=, InvoiceDate=,OpenYear=, OpenQuarter=, OpenMonth=, OpenWeek=, OpenDate=, OpenDateKey={"&amp;gt;=$(=Num(YearStart(Max(OpenDateKey)))) &amp;lt;=$(=Max(OpenDateKey))"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The issue is: selection of Invoice year is not ignored when Open period&amp;nbsp; is selected by a user.&lt;BR /&gt;Can someone please explain why?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640605#M447146</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2024-11-16T19:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Ignoring selections with default</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640606#M447147</link>
      <description>&lt;P&gt;Can you provide a sample app that shows what is the current result shown in the expression vs the expected result that should be displayed?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 06:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640606#M447147</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-10-29T06:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Ignoring selections with default</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640626#M447150</link>
      <description>&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;I Attached a sample model and screen captures.&lt;/P&gt;&lt;P&gt;I also updated the issue:&amp;nbsp;&amp;nbsp;selection of Invoice year is not ignored when Open period&amp;nbsp; is selected by a user.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 07:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640626#M447150</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2019-10-29T07:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Ignoring selections with default</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640632#M447151</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;InvoiceIssueYear=, OpenYear=, OpenDateKey={"&amp;gt;=$(=Num(YearStart(Max({&amp;lt;InvoiceIssueYear=&amp;gt;}OpenDateKey)))) &amp;lt;=$(=Max({&amp;lt;InvoiceIssueYear=&amp;gt;}OpenDateKey))"}&amp;gt;} Amount)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 07:24:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640632#M447151</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-10-29T07:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Ignoring selections with default</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640643#M447155</link>
      <description>&lt;P&gt;Indeed, that works!&lt;/P&gt;&lt;P&gt;Frankly, I don't understand what you added, nor why it doesn't work without it..&lt;/P&gt;&lt;P&gt;What are the cases when dates selections are not ignored?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 07:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640643#M447155</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2019-10-29T07:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Ignoring selections with default</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640647#M447156</link>
      <description>&lt;P&gt;&lt;EM&gt;Max({&amp;lt;InvoiceIssueYear=&amp;gt;}OpenDateKey)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;this will ignore the&amp;nbsp;InvoiceIssueYear selection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression you did earlier is max(openDateKey).&lt;/P&gt;&lt;P&gt;So it will still evaluate without ignoring the&amp;nbsp;&amp;nbsp;InvoiceIssueYear selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 08:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640647#M447156</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-10-29T08:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Ignoring selections with default</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640664#M447160</link>
      <description>&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;Would you kindly clarify why&amp;nbsp;&amp;nbsp;&lt;EM&gt;InvoiceIssueYear=&amp;nbsp;&lt;/EM&gt;doesn't have the same impact?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 08:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640664#M447160</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2019-10-29T08:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Ignoring selections with default</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640675#M447162</link>
      <description>&lt;P&gt;&lt;EM&gt;sum({&amp;lt;InvoiceIssueYear=, OpenYear=, OpenDateKey={"&amp;gt;=$(=Num(YearStart(Max({&amp;lt;InvoiceIssueYear=&amp;gt;}OpenDateKey)))) &amp;lt;=$(=Max({&amp;lt;InvoiceIssueYear=&amp;gt;}OpenDateKey))"}&amp;gt;} Amount)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This expression consists of 3 component to be evaluated:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;sum(Amount)&amp;lt;&amp;lt;&amp;lt;This part you did well in ignoring those fields by&amp;nbsp;&lt;EM&gt;InvoiceIssueYear=, OpenYear=.&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;OpenDateKey={"&amp;gt;=$(=Num(YearStart(Max(OpenDateKey)))) &amp;lt;&amp;lt;&amp;lt;this part u did not insert the field to be ignored&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;&amp;lt;=$(=Max(OpenDateKey)) &amp;lt;&amp;lt;&amp;lt; same as this&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For the expression to work well, you have to add in "&lt;EM&gt;InvoiceIssueYear="&amp;nbsp;&lt;/EM&gt;to the max(OpenDateKey), so that:&lt;/P&gt;&lt;P&gt;- when InvoiceYear is selected, it will ignore this selection and return the max(OpenDateKey)[eg:1/Oct/2019] to the base expression of:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sum({&amp;lt;InvoiceIssueYear=, OpenYear=, OpenDateKey={"&amp;gt;=[1/Jan/2019]&lt;EM&gt;&amp;lt;=[1/Oct/2019]"}&lt;/EM&gt;Amount)&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 29 Oct 2019 08:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Ignoring-selections-with-default/m-p/1640675#M447162</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2019-10-29T08:43:13Z</dc:date>
    </item>
  </channel>
</rss>

