<?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: how do i disable selections on a text object expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875351#M305708</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a rule of thumb, putting {1} inside the aggregation will remove all selections.&amp;nbsp; That will negate the need for ignoring a single field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add a {1} to both the FirstSortedValue and the Aggr, so this code should work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=firstsortedvalue({1}BRANCH_NAME,-(aggr({1}RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it stands you will need to enter that into each part of the IF.&amp;nbsp; You can simplify that code a lot by adding the &lt;STRONG&gt;BranchFullName &lt;/STRONG&gt;into the data model, using an &lt;STRONG&gt;&lt;A href="http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/"&gt;ApplyMap&lt;/A&gt;&lt;/STRONG&gt; and an &lt;STRONG&gt;INLINE&lt;/STRONG&gt; table.&amp;nbsp; This way you can remove the massive IF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, simplifications can be made, by removing the Aggr statements from the table (the Dimension does this for you) and rather than removing locations in the Dimension of your table (this messes up your selections) do this in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 05:56:03 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2015-05-05T05:56:03Z</dc:date>
    <item>
      <title>how do i disable selections on a text object expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875348#M305705</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 a text object which shows the top performing branch.&lt;/P&gt;&lt;P&gt;Variables are used inside the expression which already have {1} for disabling selections but somehow they do not work on this object. !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that when i select a branch the top performer changes which is not desired&lt;/P&gt;&lt;P&gt;How do i get over this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the sample app on which i am working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nadeem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 04:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875348#M305705</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2015-05-05T04:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: how do i disable selections on a text object expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875349#M305706</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;In your expression add Branch = for e.g. sum({&amp;lt;Branch =&amp;gt;} sales). This will not consider the selections made in the Branch field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Greeshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 05:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875349#M305706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-05T05:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: how do i disable selections on a text object expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875350#M305707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not a set analysis expression i am using variables for it and an if expression.&lt;/P&gt;&lt;P&gt;Also i tried to do the same in the variables but it did not work &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nadeem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 05:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875350#M305707</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2015-05-05T05:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: how do i disable selections on a text object expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875351#M305708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a rule of thumb, putting {1} inside the aggregation will remove all selections.&amp;nbsp; That will negate the need for ignoring a single field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add a {1} to both the FirstSortedValue and the Aggr, so this code should work for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=firstsortedvalue({1}BRANCH_NAME,-(aggr({1}RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it stands you will need to enter that into each part of the IF.&amp;nbsp; You can simplify that code a lot by adding the &lt;STRONG&gt;BranchFullName &lt;/STRONG&gt;into the data model, using an &lt;STRONG&gt;&lt;A href="http://www.quickintelligence.co.uk/applymap-is-it-so-wrong/"&gt;ApplyMap&lt;/A&gt;&lt;/STRONG&gt; and an &lt;STRONG&gt;INLINE&lt;/STRONG&gt; table.&amp;nbsp; This way you can remove the massive IF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, simplifications can be made, by removing the Aggr statements from the table (the Dimension does this for you) and rather than removing locations in the Dimension of your table (this messes up your selections) do this in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 05:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875351#M305708</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-05-05T05:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: how do i disable selections on a text object expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875352#M305709</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;thanks for replying.&lt;/P&gt;&lt;P&gt;i already put {1} inside my expressions variables.why do i need to put it outside .??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nadeem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 06:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875352#M305709</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2015-05-05T06:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: how do i disable selections on a text object expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875353#M305710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variables are calculated inside the AGGR and the FirstSortedValue statements.&amp;nbsp; The scope of these therefore also need to be set to Entire Set, or the calculation of the variables will be in the subset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I was testing this out I noticed that the {1} inside the AGGR caused the syntax highlighting to go wrong.&amp;nbsp; This is a QlikBug and you should ignore the red underlining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 06:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875353#M305710</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-05-05T06:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: how do i disable selections on a text object expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875354#M305711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks for the explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yeah same happened with me, so when i just used {1}&amp;nbsp; after the firstsorted , that did the job for me.&lt;/P&gt;&lt;P&gt;if(firstsortedvalue({1}BRANCH_NAME,.....&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I did not have to use {1} after the aggr keyword.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you suggest , should i still use the {1} after the aggr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nadeem &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 07:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875354#M305711</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2015-05-05T07:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: how do i disable selections on a text object expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875355#M305712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, take this out if it works without it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where I was thinking the {1} was required with the &lt;STRONG&gt;aggr&lt;/STRONG&gt; is like this: &lt;STRONG&gt;avg({1}(aggr(sum{{1}Value), Dim))&lt;/STRONG&gt;.&amp;nbsp; In your case the &lt;STRONG&gt;FirstSortedValue&lt;/STRONG&gt; is the equivalent of the &lt;STRONG&gt;avg&lt;/STRONG&gt;, and the &lt;STRONG&gt;sum&lt;/STRONG&gt; is in your variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 08:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875355#M305712</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-05-05T08:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: how do i disable selections on a text object expression</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875356#M305713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfectoo !!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Many Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 09:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-disable-selections-on-a-text-object-expression/m-p/875356#M305713</guid>
      <dc:creator>fashid</dc:creator>
      <dc:date>2015-05-05T09:57:41Z</dc:date>
    </item>
  </channel>
</rss>

