<?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: Set analysis help with variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-help-with-variable/m-p/131489#M756452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Chris. Maybe this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Sep 2018 13:48:45 GMT</pubDate>
    <dc:creator>andrey_krylov</dc:creator>
    <dc:date>2018-09-16T13:48:45Z</dc:date>
    <item>
      <title>Set analysis help with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help-with-variable/m-p/131488#M756451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression that i have some set analysis that uses a variable. &lt;/P&gt;&lt;P&gt;The variable is dynamically populated based on a field the user makes selections on. &lt;/P&gt;&lt;P&gt;I need these seletions to be applied to a field in the set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so basiaclly, the data has a 'Type' field which contains &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bud&lt;/P&gt;&lt;P&gt;Base&lt;/P&gt;&lt;P&gt;Overlay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then have a data island that has the following&lt;/P&gt;&lt;P&gt;Type_Selection&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt; field name&lt;/P&gt;&lt;P&gt;Bud,&lt;/P&gt;&lt;P&gt;Base,&lt;/P&gt;&lt;P&gt;Base + Overlay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i select Bud or Base, this works as it only selects Bud or Base in the Type field. &lt;/P&gt;&lt;P&gt;but when i select Base + Overlay, this relates to 2 of the types, so i need the set analysis to consider both Base and Overlay in the type field. &lt;/P&gt;&lt;P&gt;I have attached a simple sample, could anyone take&amp;nbsp; a look please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know i can link the Type_Selection field to the Type which will work but the problem this causes is it affects the rest of the data and returns incorrect values. So linking would mean that i would have top add in some set analysis to over 100 expressions throughout the QVW to ignore the Type field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is why i am looking to get the set analysis/variable option working instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help would be appreiated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help-with-variable/m-p/131488#M756451</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help-with-variable/m-p/131489#M756452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Chris. Maybe this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Sep 2018 13:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help-with-variable/m-p/131489#M756452</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-09-16T13:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis help with variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-help-with-variable/m-p/131490#M756453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if the below helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Type={"($(vBudgetType)))"}&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; To&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(GetFieldSelections(TypeSelect)='Base + Overlay',Sum({&amp;lt;Type={'Base','Overlay'}&amp;gt;}Value),Sum({&amp;lt;Type={"($(vBudgetType)))"}&amp;gt;}Value))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Sep 2018 16:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-help-with-variable/m-p/131490#M756453</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2018-09-16T16:16:11Z</dc:date>
    </item>
  </channel>
</rss>

