<?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 expression with multiple filters and a variable not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579652#M42310</link>
    <description>&lt;P&gt;Ok I think we're getting closer! I formatted my variable the way you described.&amp;nbsp; Now its like this:&lt;/P&gt;&lt;P&gt;Pick2 = {'Acme'}&lt;/P&gt;&lt;P&gt;This continues to work when hardcoded, but still doesn't work with the Pick2 variable.&lt;/P&gt;&lt;P&gt;avg({&amp;lt;myFilter1=$::myFilter1, myFilter2=$::myFilter2, PlanName={'Acme'} &amp;gt;}MarketSharePercent)&lt;/P&gt;&lt;P&gt;I've tried every combination of PlanName=Pick2, PlanName=$(Pick2), etc. and my pie chart is still blank.&lt;/P&gt;&lt;P&gt;Any other ideas what I'm doing wrong?&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2019 16:54:18 GMT</pubDate>
    <dc:creator>shempgracie</dc:creator>
    <dc:date>2019-05-13T16:54:18Z</dc:date>
    <item>
      <title>Set expression with multiple filters and a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579635#M42304</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a scatter plot and I want the user to be able to pick 2 points from the scatter plot, and then have 2 pie charts reflect the market share of each point that was selected (so they can compare market share at point 1 vs market share at point 2).&lt;/P&gt;&lt;P&gt;I have a variable that grabs the point that was selected from the scatter plot (it's called PICK2).&lt;/P&gt;&lt;P&gt;When I use the below expression, and hard code the PLAN that was selected, it works.&amp;nbsp; When I use the variable, it does not.&lt;/P&gt;&lt;P&gt;Does anyone know how to convert this to use my variable instead of hardcoding it?&lt;/P&gt;&lt;P&gt;This works with hardcoding:&lt;/P&gt;&lt;P&gt;avg({&amp;lt;myFilter1=$::myFilter1, myFilter2=$::myFilter2, PlanName={'Acme Plan'} &amp;gt;}MarketSharePercent)&lt;/P&gt;&lt;P&gt;This does not work with my variable:&lt;/P&gt;&lt;P&gt;avg({&amp;lt;myFilter1=$::myFilter1, myFilter2=$::myFilter2, PlanName=$(Pick2) &amp;gt;}MarketSharePercent)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;MNike&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579635#M42304</guid>
      <dc:creator>shempgracie</dc:creator>
      <dc:date>2024-11-16T05:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression with multiple filters and a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579638#M42305</link>
      <description>It should work.&lt;BR /&gt;You need to make sure that the output of $(Pick2) is {'Acme Plan'} and not only 'Acme Plan'.</description>
      <pubDate>Mon, 13 May 2019 16:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579638#M42305</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-05-13T16:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression with multiple filters and a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579640#M42306</link>
      <description>&lt;P&gt;May be try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Avg({&amp;lt;myFilter1=$::myFilter1, myFilter2=$::myFilter2, PlanName = {'$(Pick2)'} &amp;gt;} MarketSharePercent)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 May 2019 16:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579640#M42306</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-13T16:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression with multiple filters and a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579644#M42307</link>
      <description>&lt;P&gt;Ok that may be my problem.&amp;nbsp; Right now Pick2 is:&amp;nbsp;&amp;nbsp; Acme Plan.&lt;/P&gt;&lt;P&gt;How can I get my variable to format as {'Acme Plan'}, or how can I change my set expression to handle that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 16:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579644#M42307</guid>
      <dc:creator>shempgracie</dc:creator>
      <dc:date>2019-05-13T16:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression with multiple filters and a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579646#M42308</link>
      <description>&lt;P&gt;I tried this, but unfortunately my pie chart was still blank.&lt;/P&gt;&lt;P&gt;Any other thoughts?&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 16:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579646#M42308</guid>
      <dc:creator>shempgracie</dc:creator>
      <dc:date>2019-05-13T16:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression with multiple filters and a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579649#M42309</link>
      <description>&lt;P&gt;vPick2 = '{'&amp;amp; Concat(DISTINCT Chr(39) &amp;amp; Pick2 &amp;amp; Chr(39), ', ') &amp;amp; '}';&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 16:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579649#M42309</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-05-13T16:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression with multiple filters and a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579652#M42310</link>
      <description>&lt;P&gt;Ok I think we're getting closer! I formatted my variable the way you described.&amp;nbsp; Now its like this:&lt;/P&gt;&lt;P&gt;Pick2 = {'Acme'}&lt;/P&gt;&lt;P&gt;This continues to work when hardcoded, but still doesn't work with the Pick2 variable.&lt;/P&gt;&lt;P&gt;avg({&amp;lt;myFilter1=$::myFilter1, myFilter2=$::myFilter2, PlanName={'Acme'} &amp;gt;}MarketSharePercent)&lt;/P&gt;&lt;P&gt;I've tried every combination of PlanName=Pick2, PlanName=$(Pick2), etc. and my pie chart is still blank.&lt;/P&gt;&lt;P&gt;Any other ideas what I'm doing wrong?&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 16:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579652#M42310</guid>
      <dc:creator>shempgracie</dc:creator>
      <dc:date>2019-05-13T16:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression with multiple filters and a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579663#M42311</link>
      <description>&lt;P&gt;...and a little more info that may help:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Pick2 variable now looks like this:&lt;/P&gt;&lt;P&gt;Pick2='{'&amp;amp; Concat(DISTINCT Chr(39) &amp;amp; SubField(GetFieldSelections(PlanName),',',2) &amp;amp; Chr(39), ', ') &amp;amp; '}';&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 17:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579663#M42311</guid>
      <dc:creator>shempgracie</dc:creator>
      <dc:date>2019-05-13T17:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression with multiple filters and a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579669#M42312</link>
      <description>&lt;P&gt;Do I understand correctly that the SET modifier&lt;BR /&gt;&lt;BR /&gt;PlanName=$(Pick2)&lt;BR /&gt;&lt;BR /&gt;should set PlanName to all selected PlanName?&lt;BR /&gt;&lt;BR /&gt;This is default behavior in Qlik Sense. Can't you just use the expression without the PlanName modifier?&lt;/P&gt;&lt;P&gt;avg({&amp;lt;myFilter1=$::myFilter1, myFilter2=$::myFilter2&amp;gt;}MarketSharePercent)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 17:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579669#M42312</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-05-13T17:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression with multiple filters and a variable not working</title>
      <link>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579671#M42313</link>
      <description>&lt;P&gt;If this is what it is, why don't you just use this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Avg({&amp;lt;myFilter1=$::myFilter1, myFilter2=$::myFilter2, PlanName = P(PlanName)&amp;gt;}MarketSharePercent)&lt;/LI-CODE&gt;&lt;P&gt;or this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Avg({&amp;lt;myFilter1=$::myFilter1, myFilter2=$::myFilter2, PlanName = $::PlanName&amp;gt;}MarketSharePercent)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 May 2019 17:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-expression-with-multiple-filters-and-a-variable-not-working/m-p/1579671#M42313</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-13T17:50:28Z</dc:date>
    </item>
  </channel>
</rss>

