<?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 AW:Multiple GetFieldSelections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227127#M79264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks for your reply. I cannot find GetPossibleValues function as a valid funcion to use or something silirar. Could you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Feb 2011 16:04:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-23T16:04:06Z</dc:date>
    <item>
      <title>Multiple GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227125#M79262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a Calendar of Months and Days and I would like to use Set Analyzer to filter based on the selected Months OR Days or Combination. As follow:&lt;/P&gt;&lt;P&gt;=sum( {1&amp;lt; MONTH = {$(=GetFieldSelections(SelectedMonth))} , DAY = {$(=GetFieldSelections(selectedDay))} &amp;gt;} SALE )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I have results only when I have selections in both the Months and the Days. I get Zero if I select the Months or the Days ONLY.&lt;/P&gt;&lt;P&gt;Could you advise?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 15:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227125#M79262</guid>
      <dc:creator />
      <dc:date>2011-02-23T15:47:55Z</dc:date>
    </item>
    <item>
      <title>AW:Multiple GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227126#M79263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabio,&lt;/P&gt;&lt;P&gt;this is because GetFieldSelections will return an empty result if no selection is made. Maybe GetPossibleValues works out better in your case.&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 15:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227126#M79263</guid>
      <dc:creator />
      <dc:date>2011-02-23T15:53:28Z</dc:date>
    </item>
    <item>
      <title>AW:Multiple GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227127#M79264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks for your reply. I cannot find GetPossibleValues function as a valid funcion to use or something silirar. Could you help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 16:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227127#M79264</guid>
      <dc:creator />
      <dc:date>2011-02-23T16:04:06Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Multiple GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227128#M79265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabian,&lt;/P&gt;&lt;P&gt;you're right. That was the one function I was always looking for but it doesn't exist. I wonder why you work with a set analysis here. Is there no relationship between your date selection and sales?&lt;/P&gt;&lt;P&gt;You could put an IF around your expression to check if there is any selection (GetSelectionCount()&amp;gt;0) and if yes, you apply GetFieldSelections(). Otherwise you leave this one blank - maybe you need to return a "*" to the set analysis.&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 16:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227128#M79265</guid>
      <dc:creator />
      <dc:date>2011-02-23T16:11:55Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Multiple GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227129#M79266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Florian,&lt;/P&gt;&lt;P&gt;I have 2 calendars, one with relation, and the other independent to do compare. My objective is to compare sales values in different periods and that is why I have 2 Calendars.&lt;/P&gt;&lt;P&gt;I did try using If but I have a hard time using IF within a Set Analyzer.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 16:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227129#M79266</guid>
      <dc:creator />
      <dc:date>2011-02-23T16:17:03Z</dc:date>
    </item>
    <item>
      <title>AW:Re: AW:Re: AW:Multiple GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227130#M79267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabio,&lt;/P&gt;&lt;P&gt;whenever expressions in set analysis become too complex for me, I moved them to a variable and used the variable in my set analysis instead. This makes your application easier to maintain anyway, as you may want to reuse your formula at some other point.&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 16:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227130#M79267</guid>
      <dc:creator />
      <dc:date>2011-02-23T16:39:51Z</dc:date>
    </item>
    <item>
      <title>AW:Multiple GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227131#M79268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a function built into Set Analysis that does what GetPossibleValues would do. It's called P(). I don't know if this will do what you want though.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt;FIELD=P(FIELD)&amp;gt;} Value)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;In your case, you probably want to return the selected items when there is a selection, but return all when there is not. In these cases, I use a combination of GetSelectedCount() and GetFieldSelections().&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;If(GetSelectedCount(FIELD)&amp;gt;0, GetFieldSelections(FIELD), Chr(42))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Replace your GetFieldSelections function with that. It will return the GetFieldSelections if there are selections or an asterisk if there isn't (which will allow all values).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 17:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227131#M79268</guid>
      <dc:creator />
      <dc:date>2011-02-23T17:32:25Z</dc:date>
    </item>
    <item>
      <title>AW:Multiple GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227132#M79269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. But when for example I choose January and I don´t choose any day, I want only the values from january and not ALSO returning all possible days from the other selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 17:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227132#M79269</guid>
      <dc:creator />
      <dc:date>2011-02-23T17:56:36Z</dc:date>
    </item>
    <item>
      <title>AW:Multiple GetFieldSelections</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227133#M79270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what it does. Standard Set Analysis uses Ands to connect the clauses. Month=January And Day=* means all Days in January. The restriction on your Month selection would take care of the Day selections.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 17:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-GetFieldSelections/m-p/227133#M79270</guid>
      <dc:creator />
      <dc:date>2011-02-23T17:58:27Z</dc:date>
    </item>
  </channel>
</rss>

