<?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 If only one value available, force its selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768860#M273075</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 Section Access on a field which restricts some people to 1 value. If those people open on the dashboard I'd like to have this value autoselected in the field and stay selected for their session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that if there's only one possible value, selecting it should not matter. But it does in my setup as it defines the consolidation level of my financial figures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2015 08:00:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-23T08:00:31Z</dc:date>
    <item>
      <title>If only one value available, force its selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768860#M273075</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 Section Access on a field which restricts some people to 1 value. If those people open on the dashboard I'd like to have this value autoselected in the field and stay selected for their session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that if there's only one possible value, selecting it should not matter. But it does in my setup as it defines the consolidation level of my financial figures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 08:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768860#M273075</guid>
      <dc:creator />
      <dc:date>2015-02-23T08:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: If only one value available, force its selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768861#M273076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with 2 actions (at the sheet level, in trigger tab or at the document level, on open but maybe it doesn't work in ajax) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- select in field &lt;/P&gt;&lt;P&gt;yourfield&lt;/P&gt;&lt;P&gt;=yourfield&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- lock field&lt;/P&gt;&lt;P&gt;yourfield&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 21:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768861#M273076</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-23T21:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: If only one value available, force its selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768862#M273077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your logic that defines the consolidation, can you change from using GetSelectedCount()=1 to GetPossibleCount()=1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 22:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768862#M273077</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-02-23T22:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: If only one value available, force its selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768863#M273078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;onActivateSheet does not work in AJAX &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/angry.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I struggled to have a dynamic "select in field" for users who are not restricted, they should not have any value forced on them. So I came with OnAnySelect trigger &lt;/P&gt;&lt;P&gt;=if(count({1} distinct Field)=1,&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Field&lt;/SPAN&gt;,GetFieldSelections(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Field&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;And a conditional Lock Field trigger as well since I don't want to lock for all access users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That seems to work for me. Thanks for the suggestions of lock field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob, I'm nog using any of the constructs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 08:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768863#M273078</guid>
      <dc:creator />
      <dc:date>2015-02-24T08:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: If only one value available, force its selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768864#M273079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sure?&lt;/P&gt;&lt;P&gt;I tried with a small .qvw and for me it works (on ActivateSheet)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Tahoma; font-size: 10.6666669845581px;"&gt;Server version 11.20.12235.0&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 14:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768864#M273079</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-24T14:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: If only one value available, force its selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768865#M273080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are not using GetSelectedCount or GetPossibleCount, then why does it matter if a single possible value is selected or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 03:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768865#M273080</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-02-25T03:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: If only one value available, force its selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768866#M273081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's like this: I have Turnover on consolidated group level, on country level, on entity level.&lt;/P&gt;&lt;P&gt;So I tag all my lines I read in with their level and I have a variable that checks the lowest selected grain and turns it into a level indicator (group, country of entity). So if they select a country, I show the country level lines. If they select nothing, I show consolidated group figures. The difficulty is that 2+2 is not 4 but more like 3,5 so I just read all those lines from SAP BPC and don't use the QV engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now due to section access on country all lines for group level are deleted from the dataset (as they don't have a country) BUT as long as the users don't &lt;STRONG&gt;select&lt;/STRONG&gt; a country, the level variable remains 'group' and thus empty gauges as a cause. So they have to select their own and only country to see country level lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if that's clear but it works as desired.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 06:29:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768866#M273081</guid>
      <dc:creator />
      <dc:date>2015-02-25T06:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: If only one value available, force its selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768867#M273082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expression that sets the level indicator variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 17:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-only-one-value-available-force-its-selection/m-p/768867#M273082</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-02-25T17:37:33Z</dc:date>
    </item>
  </channel>
</rss>

