<?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 not ignoring selections in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-not-ignoring-selections/m-p/1458290#M35933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm running into an issue with set analysis that I'm not quite understanding.&amp;nbsp; I have a Sense application that has several sheets, on the first one I want to display several KPIs that should not change when other selections are made.&amp;nbsp; In the expression below I'm counting orders for the Chemistry Department that have a week starting value one week prior to the maximum week.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;Count({1&amp;lt;Department_Name = {'CHEMISTRY'},WeekStart = {"$(=Date(Max(WeekStart)-7,'M/D/YYYY hh:mm:ss TT'))"}&amp;gt;}[Order#])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine if no selections are made but if someone selects a WeekStart value then the expression is calculating the prior week from that value.&amp;nbsp; I'm sure there is something I'm not quite understanding in the dollar sign expansion that is happening but I thought that having "{1" at the beginning would ignore all selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried doing this with a variable but achieved the same result.&amp;nbsp; That one I sort of understand because I believe the variable is being evaluated at the time of the expansion.&amp;nbsp; Based on some other posts I tried putting an "=" in front to create the value first but although it lets me save the variable it evaluates to nothing.&lt;/P&gt;&lt;P&gt;Variable Definition: &lt;/P&gt;&lt;P&gt;Date(max(WeekStart)-7, 'M/D/YYYY hh:mm:ss TT')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;Count({1&amp;lt;Department_Name = {'CHEMISTRY'},WeekStart = {"$(=$(vPriorWeek))"}&amp;gt;}[Order#])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jan 2018 20:14:12 GMT</pubDate>
    <dc:creator>wayne-a</dc:creator>
    <dc:date>2018-01-03T20:14:12Z</dc:date>
    <item>
      <title>Set analysis not ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-not-ignoring-selections/m-p/1458290#M35933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm running into an issue with set analysis that I'm not quite understanding.&amp;nbsp; I have a Sense application that has several sheets, on the first one I want to display several KPIs that should not change when other selections are made.&amp;nbsp; In the expression below I'm counting orders for the Chemistry Department that have a week starting value one week prior to the maximum week.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;Count({1&amp;lt;Department_Name = {'CHEMISTRY'},WeekStart = {"$(=Date(Max(WeekStart)-7,'M/D/YYYY hh:mm:ss TT'))"}&amp;gt;}[Order#])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine if no selections are made but if someone selects a WeekStart value then the expression is calculating the prior week from that value.&amp;nbsp; I'm sure there is something I'm not quite understanding in the dollar sign expansion that is happening but I thought that having "{1" at the beginning would ignore all selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried doing this with a variable but achieved the same result.&amp;nbsp; That one I sort of understand because I believe the variable is being evaluated at the time of the expansion.&amp;nbsp; Based on some other posts I tried putting an "=" in front to create the value first but although it lets me save the variable it evaluates to nothing.&lt;/P&gt;&lt;P&gt;Variable Definition: &lt;/P&gt;&lt;P&gt;Date(max(WeekStart)-7, 'M/D/YYYY hh:mm:ss TT')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;Count({1&amp;lt;Department_Name = {'CHEMISTRY'},WeekStart = {"$(=$(vPriorWeek))"}&amp;gt;}[Order#])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 20:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-not-ignoring-selections/m-p/1458290#M35933</guid>
      <dc:creator>wayne-a</dc:creator>
      <dc:date>2018-01-03T20:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-not-ignoring-selections/m-p/1458291#M35934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({1&amp;lt;Department_Name = {'CHEMISTRY'},WeekStart = {"$(=Date(Max(&lt;SPAN style="color: #ff0000;"&gt;{1}&lt;/SPAN&gt; WeekStart)-7,'M/D/YYYY hh:mm:ss TT'))"}&amp;gt;}[Order#])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 20:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-not-ignoring-selections/m-p/1458291#M35934</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-03T20:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not ignoring selections</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-not-ignoring-selections/m-p/1458292#M35935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny!&amp;nbsp; That was it, I just couldn't figure out where that second ignore went.&amp;nbsp; Also got the variable to work with the following:&amp;nbsp; Date(max(&lt;STRONG&gt;{1}&lt;/STRONG&gt;WeekStart)-7, 'M/D/YYYY hh:mm:ss TT')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2018 20:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-not-ignoring-selections/m-p/1458292#M35935</guid>
      <dc:creator>wayne-a</dc:creator>
      <dc:date>2018-01-03T20:28:19Z</dc:date>
    </item>
  </channel>
</rss>

