<?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: Using Set Analysis as a variable.... in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-as-a-variable/m-p/1361297#M30544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked really well - many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies for the time in responding - I was away for the weekend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2017 10:32:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-10T10:32:45Z</dc:date>
    <item>
      <title>Using Set Analysis as a variable....</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-as-a-variable/m-p/1361293#M30540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had some really helpful feedback on here last week which has meant I am able to set a variable for a standard set analysis which is used in a lot of visualisations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable is called &lt;STRONG&gt;vIssuedandFinalisedQuotesInSelection&lt;/STRONG&gt; and is defined as:&lt;/P&gt;&lt;P&gt;{&amp;lt;Q_QUOTE_TrackedQuote={'Yes'},Q_QUOTE_QuoteType-={'Research'},Q_QUOTE_QuoteStatus*={'Issued','Finalised'},&lt;/P&gt;&lt;P&gt; Q_QUOTE_StartDate={"&amp;gt;=$(=date(vStartDate,'DD/MM/YYYY'))&amp;lt;=$(=date(vEndDate,'DD/MM/YYYY'))"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the visualisation is set up as follows:&lt;/P&gt;&lt;P&gt;count(distinct $(vIssuedandFinalisedQuotesIncludedInSelection)CaseID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This all works really well....however....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....I have now worked out that not all my visualisations have exactly the same Set Analysis.&amp;nbsp; TrackedQuote, QuoteTyp eand StartDate are all common, but QuoteStatus can vary, and often there are addition selections needed...so what I really want to do is set the variable for the constant parts and then append extra bits on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have tried setting the variable &lt;STRONG&gt;vTest&lt;/STRONG&gt; to be:&lt;/P&gt;&lt;P&gt;{&amp;lt;Q_QUOTE_TrackedQuote={'Yes'},Q_QUOTE_QuoteType-={'Research'},Q_QUOTE_QuoteStatus*={'Issued','Finalised'},&lt;/P&gt;&lt;P&gt; Q_QUOTE_StartDate={"&amp;gt;=$(=date(vStartDate,'DD/MM/YYYY'))&amp;lt;=$(=date(vEndDate,'DD/MM/YYYY'))"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(so missing the last &amp;gt;} so I can expand it out as required)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the expression to be&lt;/P&gt;&lt;P&gt;count(distinct =$(vTest&amp;amp;'&amp;gt;}')&amp;amp;CaseID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression seems to work in that it calculates something, but it does not apply any of the selections, and returns the answer value as if no selections are made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas?&amp;nbsp; Am I mad for trying to do it this way, or is there a better way to achieve what I want, which is simplification of applying some common selections to set analysis in over 60 visualisations but allowing flexibility for local variation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 11:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-as-a-variable/m-p/1361293#M30540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-07T11:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis as a variable....</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-as-a-variable/m-p/1361294#M30541</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;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count(DISTINCT $(vTest)&amp;gt;} CaseID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 11:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-as-a-variable/m-p/1361294#M30541</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-07T11:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis as a variable....</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-as-a-variable/m-p/1361295#M30542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count(DISTINCT&amp;nbsp; $(=$(vTest) &amp;amp; '&amp;gt;}') CaseID)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 11:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-as-a-variable/m-p/1361295#M30542</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-07T11:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis as a variable....</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-as-a-variable/m-p/1361296#M30543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did it work? Can you enlighten us please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 10:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-as-a-variable/m-p/1361296#M30543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-10T10:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using Set Analysis as a variable....</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-as-a-variable/m-p/1361297#M30544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked really well - many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies for the time in responding - I was away for the weekend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 10:32:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Set-Analysis-as-a-variable/m-p/1361297#M30544</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-10T10:32:45Z</dc:date>
    </item>
  </channel>
</rss>

