<?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: Using a function in a set expression, what am I missing? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-a-function-in-a-set-expression-what-am-I-missing/m-p/1194186#M628739</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you missed the dollar sign expansion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Avg({$&amp;lt;Onderwerp={"&lt;SPAN style="color: #ff0000;"&gt;$(&lt;/SPAN&gt;=Mid(GetActiveSheetId(),10)&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;"}&amp;gt;} Cijfer)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2016 16:28:02 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-09-29T16:28:02Z</dc:date>
    <item>
      <title>Using a function in a set expression, what am I missing?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-function-in-a-set-expression-what-am-I-missing/m-p/1194185#M628738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm experiencing a peculiar problem. I have selected a single line in my dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider this expression in a textbox:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Avg({$&amp;lt;Onderwerp={'REK-3F-CE'}&amp;gt;}Cijfer) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It shows 3.01, just what i expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I was trying to do is give the sheet(s) a contextrich name, REK-3F-CE in this case.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=MID(GetActiveSheetId(),10)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This one shows REK-3F-CE, just what i expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next step:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;=MID(GetActiveSheetId(),10)&lt;/STRONG&gt; &lt;STRONG&gt;= 'REK-3F-CE'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;returns -1 (TRUE), just what i expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next step:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=MID(GetActiveSheetId(),10) = Onderwerp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;also returns -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the final step:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;=Avg({$&amp;lt;Onderwerp={"&lt;STRONG style="font-size: 13.3333px;"&gt;=MID(GetActiveSheetId(),10)&lt;/STRONG&gt;"}&amp;gt;}Cijfer)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This one does not yield the result i want, I'd like it to return the same 3.01 as the first expression.&lt;/P&gt;&lt;P&gt;I was under the impression the function is executed, and the result used in the compare, but I suppose I am missing something here.&lt;/P&gt;&lt;P&gt;Is there anyone who can enlighten me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Herb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 14:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-function-in-a-set-expression-what-am-I-missing/m-p/1194185#M628738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-29T14:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using a function in a set expression, what am I missing?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-function-in-a-set-expression-what-am-I-missing/m-p/1194186#M628739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you missed the dollar sign expansion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Avg({$&amp;lt;Onderwerp={"&lt;SPAN style="color: #ff0000;"&gt;$(&lt;/SPAN&gt;=Mid(GetActiveSheetId(),10)&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;"}&amp;gt;} Cijfer)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 16:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-function-in-a-set-expression-what-am-I-missing/m-p/1194186#M628739</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-29T16:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using a function in a set expression, what am I missing?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-function-in-a-set-expression-what-am-I-missing/m-p/1194187#M628740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Works like a charm!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you by any chance know a web-place where i can brush up on dollar sign expansion rules/examples etc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Herb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 17:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-function-in-a-set-expression-what-am-I-missing/m-p/1194187#M628740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-29T17:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using a function in a set expression, what am I missing?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-function-in-a-set-expression-what-am-I-missing/m-p/1194188#M628741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check this link out:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3444"&gt;The Magic of Dollar Expansions&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 18:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-function-in-a-set-expression-what-am-I-missing/m-p/1194188#M628741</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-29T18:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using a function in a set expression, what am I missing?</title>
      <link>https://community.qlik.com/t5/QlikView/Using-a-function-in-a-set-expression-what-am-I-missing/m-p/1194189#M628742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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>Thu, 29 Sep 2016 18:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-a-function-in-a-set-expression-what-am-I-missing/m-p/1194189#M628742</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-29T18:05:12Z</dc:date>
    </item>
  </channel>
</rss>

