<?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: Set expression being ignored in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982912#M335435</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand the syntax of the inner {..}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did try was&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(=DisplayRate)*Sum({1}Price/ExchangeRate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I want to understand how dollar-sign expansions affect the logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2015 18:22:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-28T18:22:03Z</dc:date>
    <item>
      <title>Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982909#M335432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a list of items with prices in different currencies, each item in a class which is used as the dimension.&amp;nbsp; I want to display the totals by class in a selected display currency.&amp;nbsp; And I want to do this with (A) the current selection {$}, and (B) the entire set {1}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The load statements are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Class,Item,Price,Currency&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Tech','TV',200,'GBP'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Tech','VCR',100,'EUR'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Tech','Speakers',400,'USD'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Home','Sofa',800,'GBP'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Home','Table',900,'EUR'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Home','Rug',200,'USD'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Garden','Swing',150,'GBP'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Garden','Parasol',250,'GBP'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Garden','Mower',300,'GBP'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Currencies:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Currency,ExchangeRate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USD, 1.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EUR, 0.90&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GBP, 0.65&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;DisplayCurrencies:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisplayCurrency,DisplayRate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USD, 1.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EUR, 0.90&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GBP, 0.65&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expressions are respectively:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(A):&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisplayRate*Sum(Price/ExchangeRate)&lt;/P&gt;&lt;P&gt;(B):&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisplayRate*Sum({1}Price/ExchangeRate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select different combinations of Class the first chart behaves as expected, displaying the selected dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the second chart changes in synch with the first whereas I expect it to show all dimensions all the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove the scalar DisplayRate from the second expression to become&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({1}Price/ExchangeRate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it displays all classes all the time, as I expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there some subtlety in set expressions that I have missed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching my QVW file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 14:53:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982909#M335432</guid>
      <dc:creator />
      <dc:date>2015-10-28T14:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982910#M335433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DisplayRate is also aggregated using the implicit Only() function since you didn't specify an aggregation function explicitly. Your expression is really Only(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DisplayRate)*Sum(Price/ExchangeRate). To make that ignore selections as well you need to add the record set definition {1} to the Only() function too: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Only({1}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DisplayRate)*Sum({1}Price/ExchangeRate)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982910#M335433</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-28T17:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982911#M335434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1} {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DisplayRate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DisplayRate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Price&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ExchangeRate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982911#M335434</guid>
      <dc:creator />
      <dc:date>2015-10-28T17:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982912#M335435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand the syntax of the inner {..}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did try was&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(=DisplayRate)*Sum({1}Price/ExchangeRate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I want to understand how dollar-sign expansions affect the logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982912#M335435</guid>
      <dc:creator />
      <dc:date>2015-10-28T18:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982913#M335436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This gives "no data to display"!&amp;nbsp; But surely since there is only one value selected, Only() should be identical whatever the set identifier?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982913#M335436</guid>
      <dc:creator />
      <dc:date>2015-10-28T18:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982914#M335437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a small qlikview document that demonstrates the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982914#M335437</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-28T18:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982915#M335438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's attached to the initial entry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982915#M335438</guid>
      <dc:creator />
      <dc:date>2015-10-28T18:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982916#M335439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kind of strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got it working using a variable vRate = DisplayRate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982916#M335439</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-28T19:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982917#M335440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course this is a contrived example to illustrate a difficulty I have found on a bigger data set.&amp;nbsp; So I am interested in the principles of what works and why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the avg() function doing that is different from just using a single-valued field?&amp;nbsp; In another post to this thread I tried $(=DisplayRate) and this worked.&amp;nbsp; I can use a constant scalar such as 0.5*Sum(...) so what type of entity can I use instead of the 0.5?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982917#M335440</guid>
      <dc:creator />
      <dc:date>2015-10-28T19:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982918#M335441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I can understand why only({1}DisplayRate)*... wouldn't work. But &lt;SPAN style="font-size: 13.3333px;"&gt;only({&amp;lt;Class&amp;gt;}DisplayRate)*... should afaik. Perhaps the fact that the tables are not linked is causing the weirdness. As soon as I outer join DisplayCurrencies with the Currencies table the weirdness is gone. Of course the expression results are bogus after the outer join (though sum(distinct...) works). My conclusion: use data islands with care. They're inhabited by gremlins.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982918#M335441</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-28T19:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982919#M335442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Point taken!&amp;nbsp; And I like the idea of setting a variable to the value from the data island to ensure it is a scalar.&amp;nbsp; That is the point of my island in the first place.&amp;nbsp; I am still getting my head around the associative data model as opposed to the relational third normal form I have used all these years!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982919#M335442</guid>
      <dc:creator />
      <dc:date>2015-10-28T19:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982920#M335443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one works please try this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 20:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982920#M335443</guid>
      <dc:creator />
      <dc:date>2015-10-28T20:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982921#M335444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One final question.&amp;nbsp; I don't recognize the syntax in your expression - &lt;SPAN style="font-size: 13.3333px;"&gt;only({&amp;lt;Class&amp;gt;}DisplayRate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;What does the set modifier &amp;lt;Class&amp;gt; do?&amp;nbsp; I have seen &amp;lt;Class=&amp;gt; but not just the fieldname alone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Is there a good reference for this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 13:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982921#M335444</guid>
      <dc:creator />
      <dc:date>2015-10-29T13:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression being ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982922#M335445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe &amp;lt;Class=&amp;gt; and &amp;lt;Class&amp;gt; are functional equivalent. Both clear selections in field Class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 15:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression-being-ignored/m-p/982922#M335445</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-29T15:37:26Z</dc:date>
    </item>
  </channel>
</rss>

