<?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() from another state in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548835#M205040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That doesn't seem to work; however, if i take out the getselectedcount(), it will return a value if 1 selected, else null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's what i'm testing for in the getselectedcount() so my follow-up question would be, can i easily test that for null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like:&lt;/P&gt;&lt;P&gt;=if(only({[PerfTRAC-Periods]}PerfReturnPeriods_Desc)=Null(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'MTD',&lt;/P&gt;&lt;P&gt;&amp;nbsp; only({[PerfTRAC-Periods]}PerfReturnPeriods_Desc))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this doesn't seem to work, but how could i test that the only function returned nothing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jan 2014 17:09:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-03T17:09:41Z</dc:date>
    <item>
      <title>getselectedcount() from another state</title>
      <link>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548833#M205038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to reference the selections on a field from a specific alternate state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do this when a function allows set analysis, but it doesn't seem to work on a function like getselectedcount() that doesn't have a set analysis option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way around this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;=MaxString({[PerfTRAC-Periods]}PerfReturnPeriods_Desc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; returns the max from the state 'PerfTRAC-Periods'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attempting the same below doesn't work&lt;/P&gt;&lt;P&gt;=GetSelectedCount({[PerfTRAC-Periods]}PerfReturnPeriods_Desc)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 16:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548833#M205038</guid>
      <dc:creator />
      <dc:date>2014-01-03T16:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: getselectedcount() from another state</title>
      <link>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548834#M205039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;How about&lt;/P&gt;&lt;P&gt;=GetSelectedCount(Only({[PerfTRAC-Periods]} PerfReturnPeriods_Desc))&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 17:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548834#M205039</guid>
      <dc:creator>simondachstr</dc:creator>
      <dc:date>2014-01-03T17:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: getselectedcount() from another state</title>
      <link>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548835#M205040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That doesn't seem to work; however, if i take out the getselectedcount(), it will return a value if 1 selected, else null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's what i'm testing for in the getselectedcount() so my follow-up question would be, can i easily test that for null?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like:&lt;/P&gt;&lt;P&gt;=if(only({[PerfTRAC-Periods]}PerfReturnPeriods_Desc)=Null(),&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'MTD',&lt;/P&gt;&lt;P&gt;&amp;nbsp; only({[PerfTRAC-Periods]}PerfReturnPeriods_Desc))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this doesn't seem to work, but how could i test that the only function returned nothing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 17:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548835#M205040</guid>
      <dc:creator />
      <dc:date>2014-01-03T17:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: getselectedcount() from another state</title>
      <link>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548836#M205041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A GetSelectedCount could be translate into:&lt;/P&gt;&lt;P&gt;count(distinct &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{[PerfTRAC-Periods]} PerfReturnPeriods_Desc&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 17:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548836#M205041</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-01-03T17:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: getselectedcount() from another state</title>
      <link>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548837#M205042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Mark&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have got the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;getselectedcount() &lt;/SPAN&gt;for your required Alternate State what are you going to do with the output ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ask that as you may be able to define the Alternate State outside the expression.&amp;nbsp; I.e. if you want to display the output number in a Text Box then could you set this object's State to the Alternate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 17:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548837#M205042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-03T17:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: getselectedcount() from another state</title>
      <link>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548838#M205043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using it in a function for the title of a chart, so unfortunately I can't just set the state of the object.&amp;nbsp; I always seem to find the most difficult problems &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 17:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548838#M205043</guid>
      <dc:creator />
      <dc:date>2014-01-03T17:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: getselectedcount() from another state</title>
      <link>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548839#M205044</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;&lt;EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800002098083496px;"&gt;&lt;STRONG&gt;count(distinct &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 12.800002098083496px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;{[PerfTRAC-Periods]} PerfReturnPeriods_Desc&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800002098083496px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800002098083496px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;this is not correct, becuse when you have no selection on field, you will get the distinct count of field values ( for example 10 ) from count function. At the same time you will get the 0 from GetSelectedCount function that correct is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Peyman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 13:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getselectedcount-from-another-state/m-p/548839#M205044</guid>
      <dc:creator>azimabadi</dc:creator>
      <dc:date>2014-02-06T13:18:39Z</dc:date>
    </item>
  </channel>
</rss>

