<?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: GetSelectedCount in alternate state in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882480#M989409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bingo! That is exactly what I needed. Thank you all for your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Piet - you nailed it for my particular example. Thanks so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am always very grateful for the help of this community!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2015 16:06:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-15T16:06:55Z</dc:date>
    <item>
      <title>GetSelectedCount in alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882475#M989404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been researching how to get a field selection count for various fields in various alternate states and am not really seeing how to execute the formula. I've tried different things but finally decided to throw it out to you experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my ultimate goal...I need to be able to do a logical test on whether at least one field selection has been made in various alternate states. I am looking for either a true (there has been at least one selection made in a specific field) or false (no selections have been made).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I'm using without alternate state and it works fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetSelectedCount([Field_A]) &amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--1 = yes there was at least one selection made&lt;/P&gt;&lt;P&gt;0 = no selection was made&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add alternate state to this but it can't be done in the alternate state box on the general tab because I will need to do a nested formula where I look at selection counts for multiple fields in multiple alternate states. How would I add alternate state to the formula above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882475#M989404</guid>
      <dc:creator />
      <dc:date>2015-07-15T15:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount in alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882476#M989405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/pepsiyummie"&gt;pepsiyummie&lt;/A&gt;&lt;/STRONG&gt;!&lt;/P&gt;&lt;P&gt;You might be able to do that through Set Analysis, using the " &lt;STRONG style="color: #993366; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[State Identifier]" &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;and "&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;::".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Have a look at the Built-in Help in Qlikview.&lt;/P&gt;&lt;P&gt;Or if you could attach a sample of what you need....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080;"&gt;Alex&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882476#M989405</guid>
      <dc:creator>marleygt</dc:creator>
      <dc:date>2015-07-15T15:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount in alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882477#M989406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on which version of qlikview you are using, there is a (3rd) parameter in GetSelectedCount for that. I think starting 11.2 SR5(?) or so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the help:&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor285"&gt;&lt;/A&gt;&lt;A name="getselectedcount"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;getselectedcount (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;FieldName [, IncludeExcluded [, State]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Returns the current number of selected values in a field. It is possible to query an alternate state.&lt;/P&gt;&lt;P&gt;If &lt;SPAN class="Italic"&gt;IncludeExcluded&lt;/SPAN&gt; is true the count will include selected values, which are currently excluded by selections in other fields. If false or omitted these values will not be included. &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Italic"&gt;State&lt;/SPAN&gt; is the alternate state to query.&lt;/P&gt;&lt;P class="example"&gt;Examples&lt;/P&gt;&lt;P class="Code"&gt;getselectedcount ( Year ) &lt;/P&gt;&lt;P class="Code"&gt;getselectedcount ( Year, true( ) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882477#M989406</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-07-15T15:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount in alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882478#M989407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did see that in help but when I tried to implement it I was clearly not doing it right. Can you please help me by translating this formula...&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: 12px; line-height: 1.5em;"&gt;=GetSelectedCount([Field_A]) &amp;gt; 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; font-size: 12px; line-height: 1.5em;"&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; font-size: 12px; line-height: 1.5em;"&gt;into the help formula...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em;"&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; font-size: 12px; line-height: 1.5em;"&gt;&lt;SPAN class="Bold" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;getselectedcount (&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;FieldName [, IncludeExcluded [, State]]&lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;)&lt;/SPAN&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; font-size: 12px; line-height: 1.5em;"&gt;&lt;SPAN class="Bold" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&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; font-size: 12px; line-height: 1.5em;"&gt;&lt;SPAN class="Bold" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;I had no success at it! Thanks so much.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882478#M989407</guid>
      <dc:creator />
      <dc:date>2015-07-15T15:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount in alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882479#M989408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this for example, state name with quotes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=GetSelectedCount(Year,False(),'Group')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 16:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882479#M989408</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-07-15T16:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount in alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882480#M989409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bingo! That is exactly what I needed. Thank you all for your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Piet - you nailed it for my particular example. Thanks so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am always very grateful for the help of this community!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 16:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882480#M989409</guid>
      <dc:creator />
      <dc:date>2015-07-15T16:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: GetSelectedCount in alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882481#M989410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 16:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetSelectedCount-in-alternate-state/m-p/882481#M989410</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-07-15T16:11:02Z</dc:date>
    </item>
  </channel>
</rss>

