<?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: Alternate State and GetSelectedCount in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714616#M257169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using Only({Forecast1} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ForecastVersion) and Only({Forecast2} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ForecastVersion).&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;"&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;Luckily in your case, if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ForecastVersion is anything but one specific Forecast Version&amp;nbsp; Only() will evaluate to null().&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;"&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;So something like&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;isNull(Only({Forecast1} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ForecastVersion))&amp;lt;&amp;gt;-1&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;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;should do&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2014 13:30:57 GMT</pubDate>
    <dc:creator>simondachstr</dc:creator>
    <dc:date>2014-10-13T13:30:57Z</dc:date>
    <item>
      <title>Alternate State and GetSelectedCount</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714615#M257168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using alternate states in my QlikView Dashboard to allow user´s to compare different versions of forecasts.&lt;/P&gt;&lt;P&gt;The alternate states are called 'Forecast1' and 'Forecast2'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The charts that are linked to this comparison work fine - as long as only ONE forecast version is selected in each alternate state. That´s why I want to prevent my users from selecting more than one forecast version. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me formulate the statement for the "Show&amp;gt;Conditional" Field in my Layout tab? The name of the field is ForecastVersion. I have already tried to use GetSelectedCount but it seems to malfunction with alternate states. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Lina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 13:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714615#M257168</guid>
      <dc:creator />
      <dc:date>2014-10-13T13:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State and GetSelectedCount</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714616#M257169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using Only({Forecast1} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ForecastVersion) and Only({Forecast2} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ForecastVersion).&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;"&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;Luckily in your case, if &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ForecastVersion is anything but one specific Forecast Version&amp;nbsp; Only() will evaluate to null().&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;"&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;So something like&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;isNull(Only({Forecast1} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ForecastVersion))&amp;lt;&amp;gt;-1&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;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;should do&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 13:30:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714616#M257169</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-10-13T13:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State and GetSelectedCount</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714617#M257170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView v11.2 SR8 has additional functionality for Alternate States&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SR8 Alternate state parameter for certain functions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;New parameter added to the functions “GetSelectedCount()”, “GetFieldSelections()” and &lt;/P&gt;&lt;P&gt;“GetCurrentSelections()” to query other states than the main state.&lt;/P&gt;&lt;P&gt;E.g. =GetFieldSelections(Quantity, ';', ,'StateA')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More details in the release notes and in this post&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/supportupdates/2014/09/09/qlikview-1120-service-release-8-is-now-available"&gt;http://community.qlik.com/blogs/supportupdates/2014/09/09/qlikview-1120-service-release-8-is-now-available&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 13:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714617#M257170</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-10-13T13:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State and GetSelectedCount</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714618#M257171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lina to prevent this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set "Always One selected" property of the list box for both alternate states.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other option would be using if( isnull(subfield(Concat(distinct {Platform1}Platform,'|') ,'|',2)) in the contion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 13:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714618#M257171</guid>
      <dc:creator />
      <dc:date>2014-10-13T13:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State and GetSelectedCount</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714619#M257172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I prefer to use maxstring() rather than only() as maxstring() will always return one value whereas only() will return null if nothing or mukltiple values are selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 13:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714619#M257172</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2014-10-13T13:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State and GetSelectedCount</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714620#M257173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree, but in her case if nothing is selected I don't think she wants anything to be displayed, thus the only() expression. Next to that, maxstring() will return always return one value. This will be the one with the longest string which might confuse the user, if he has nothing selected e.g..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 13:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/714620#M257173</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-10-13T13:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alternate State and GetSelectedCount</title>
      <link>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/1997876#M1221348</link>
      <description>&lt;P&gt;This is fantastic! It works for me in 2022!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 02:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alternate-State-and-GetSelectedCount/m-p/1997876#M1221348</guid>
      <dc:creator>calvintang</dc:creator>
      <dc:date>2022-10-28T02:10:46Z</dc:date>
    </item>
  </channel>
</rss>

