<?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: Taking selections into consideration in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Taking-selections-into-consideration-in-Set-Analysis/m-p/508733#M190140</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Create a variable and use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Var=GetFieldSelections([Named Account])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;use that variable in the expression. So if you select one any of the list box this will change accordingly. But apply one value always select in [Name Account] list box. Because if u don't do that then if no value select then null would be return. And expression become wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit;"&gt;=num(sum({&amp;lt;License = {'License'},[Forecast Category]={'Won'},OppYear={$(=vYear)},&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit;"&gt;[Named Account]={'$(Var)'}&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit;"&gt;&amp;gt;} [Opportunity Amount])/sum({&amp;lt;License = {'License'},[Forecast Category]={'Won'},OppYear={$(=vYear)}&amp;gt;} [Opportunity Amount]),'##0%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit;"&gt;Hope this would help you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Oct 2013 12:30:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-03T12:30:49Z</dc:date>
    <item>
      <title>Taking selections into consideration in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-selections-into-consideration-in-Set-Analysis/m-p/508730#M190137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this problem that I have added a field into a Set Analysis to calculate a percentage value. The Expression can be viewed below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum({&amp;lt;License = {'License'},[Forecast Category]={'Won'},OppYear={$(=vYear)},&lt;STRONG&gt;[Named Account]={'JA'}&lt;/STRONG&gt;&amp;gt;} [Opportunity Amount])/sum({&amp;lt;License = {'License'},[Forecast Category]={'Won'},OppYear={$(=vYear)}&amp;gt;} [Opportunity Amount]),'##0%') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am making a summation of the Opportunity Amount for all Opportunities where Named Account = JA and divide it with the Total Opportunity Amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want this to be dynamic for selections. As it is now, if I make a selection in a list box for the Named Account field the summation with the [Named Account]={'JA'} is not changing value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if anyone knows how to write the expression so that it is dynamic for selections in the Named Account field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 11:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-selections-into-consideration-in-Set-Analysis/m-p/508730#M190137</guid>
      <dc:creator />
      <dc:date>2013-10-03T11:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Taking selections into consideration in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-selections-into-consideration-in-Set-Analysis/m-p/508731#M190138</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;"&gt;=num(sum({&amp;lt;License = {'License'},[Forecast Category]={'Won'},OppYear={$(=vYear)}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;gt;} [Opportunity Amount]) / sum(1{&amp;lt;License = {'License'},[Forecast Category]={'Won'},OppYear={$(=vYear)}&amp;gt;} [Opportunity Amount]),'##0%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 11:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-selections-into-consideration-in-Set-Analysis/m-p/508731#M190138</guid>
      <dc:creator>israrkhan</dc:creator>
      <dc:date>2013-10-03T11:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Taking selections into consideration in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-selections-into-consideration-in-Set-Analysis/m-p/508732#M190139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a variable like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=GetFieldSelections([Named Account])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and call that variable in the expression like.&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;"&gt;=num(sum({&amp;lt;License = {'License'},[Forecast Category]={'Won'},OppYear={$(=vYear)},&lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Named Account]={'$(variable)'}&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;gt;} [Opportunity Amount])/sum({&amp;lt;License = {'License'},[Forecast Category]={'Won'},OppYear={$(=vYear)}&amp;gt;} [Opportunity Amount]),'##0%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;hope that helps&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:05:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-selections-into-consideration-in-Set-Analysis/m-p/508732#M190139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-03T12:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Taking selections into consideration in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-selections-into-consideration-in-Set-Analysis/m-p/508733#M190140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Create a variable and use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Var=GetFieldSelections([Named Account])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;use that variable in the expression. So if you select one any of the list box this will change accordingly. But apply one value always select in [Name Account] list box. Because if u don't do that then if no value select then null would be return. And expression become wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit;"&gt;=num(sum({&amp;lt;License = {'License'},[Forecast Category]={'Won'},OppYear={$(=vYear)},&lt;/SPAN&gt;&lt;STRONG style="font-style: inherit;"&gt;[Named Account]={'$(Var)'}&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit;"&gt;&amp;gt;} [Opportunity Amount])/sum({&amp;lt;License = {'License'},[Forecast Category]={'Won'},OppYear={$(=vYear)}&amp;gt;} [Opportunity Amount]),'##0%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit;"&gt;Hope this would help you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-selections-into-consideration-in-Set-Analysis/m-p/508733#M190140</guid>
      <dc:creator />
      <dc:date>2013-10-03T12:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Taking selections into consideration in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Taking-selections-into-consideration-in-Set-Analysis/m-p/508734#M190141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Fredrik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To me, to get all named accounts in the divider :" [Named Account] = ,"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 10pt;"&gt;=num(sum({&amp;lt;License = {'License'},[Forecast Category]={'Won'},OppYear={$(=vYear)},&lt;STRONG style="font-family: 'Helvetica','sans-serif';"&gt;[Named Account]={'JA'}&lt;/STRONG&gt;&amp;gt;} [Opportunity Amount])/sum({&amp;lt;License = {'License'},[Forecast Category]={'Won'},OppYear={$(=vYear), &lt;STRONG style="font-family: 'Helvetica','sans-serif';"&gt;[Named Account]=&lt;/STRONG&gt;}&amp;gt;} [Opportunity Amount]),'##0%') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 10pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 10pt;"&gt;But if you set Named Account with JA or with All in the divider, it will not depend anymore on the selection you make in the selector. If you remove it (JA), it will depend again on the ListBox.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 10pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 10pt;"&gt;Another thing, it could happe that you get a ListBox not on Named Account but on sth similar and depend like Key Account or another linked dimension (Group of Account). In that case it can be misleading : you should remove them in the set with " [group of account]= , "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 10pt;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 10pt;"&gt;Fabrice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Taking-selections-into-consideration-in-Set-Analysis/m-p/508734#M190141</guid>
      <dc:creator />
      <dc:date>2013-10-03T12:44:28Z</dc:date>
    </item>
  </channel>
</rss>

