<?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: User defined field within expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443962#M808664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({$&amp;lt;[Retained]={'Yes'}&amp;gt;}[Student ID])/Count(TOTAL &amp;lt;&lt;SPAN style="color: #ff0000;"&gt;$(='[' &amp;amp;&lt;/SPAN&gt; GetFieldSelections(Fields&lt;SPAN style="color: #ff0000;"&gt;, '], ['&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;&amp;amp; ']')&lt;/SPAN&gt;&amp;gt; [Student ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Oct 2017 12:57:22 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-10-12T12:57:22Z</dc:date>
    <item>
      <title>User defined field within expression</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443959#M808661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hoping someone can help. I have an expression for calculating percentages within a table where users can define the visible fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;[Retained]={'Yes'}&amp;gt;}[Student ID])/count(TOTAL &amp;lt;GetFieldSelections(Fields)&amp;gt; [Student ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The getfieldselections statement is meant to allow users to specify what the context of the calculated percentage e.g. by programme, gender, session etc. However when I try this, the calculation is blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know where I might be going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443959#M808661</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: User defined field within expression</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443960#M808662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({$&amp;lt;[Retained]={'Yes'}&amp;gt;}[Student ID])/Count(TOTAL &amp;lt;&lt;SPAN style="color: #ff0000;"&gt;$(='[' &amp;amp;&lt;/SPAN&gt; GetFieldSelections(Fields)&lt;SPAN style="color: #ff0000;"&gt; &amp;amp; ']')&lt;/SPAN&gt;&amp;gt; [Student ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443960#M808662</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-12T12:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: User defined field within expression</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443961#M808663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny that does work! One question though, is there a way for it to accept multiple selections? E.g. selecting session and gender to display a percentage which adds up to 100% for each session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443961#M808663</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2017-10-12T12:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: User defined field within expression</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443962#M808664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({$&amp;lt;[Retained]={'Yes'}&amp;gt;}[Student ID])/Count(TOTAL &amp;lt;&lt;SPAN style="color: #ff0000;"&gt;$(='[' &amp;amp;&lt;/SPAN&gt; GetFieldSelections(Fields&lt;SPAN style="color: #ff0000;"&gt;, '], ['&lt;/SPAN&gt;) &lt;SPAN style="color: #ff0000;"&gt;&amp;amp; ']')&lt;/SPAN&gt;&amp;gt; [Student ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443962#M808664</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-12T12:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: User defined field within expression</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443963#M808665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 13:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443963#M808665</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2017-10-12T13:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: User defined field within expression</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443964#M808666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping you might be able to help with a quick question, I'm trying to add in an additional set analysis criteria (specifying a particular session) to the above expression but it's throwing up errors. Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({$&amp;lt;[Retained]={'Yes'},[Session]={'2015/16'}&amp;gt;}[Student ID])/count(TOTAL &amp;lt;{$(='[' &amp;amp; GetFieldSelections(Fields, '], [') &amp;amp; ']'),[Session]={'2015/16'}&amp;gt;}[Student ID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 13:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443964#M808666</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2017-10-17T13:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: User defined field within expression</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443965#M808667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because what I added was not set analysis, it was field name used by TOTAL qualifier... try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count({$&amp;lt;[Retained]={'Yes'}, [Session]={'2015/16'}&amp;gt;} [Student ID])/Count(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;[Session]={'2015/16'}&amp;gt;}&lt;/SPAN&gt; TOTAL &amp;lt;$(='[' &amp;amp; GetFieldSelections(Fields, '], [') &amp;amp; ']')&amp;gt; [Student ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 13:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443965#M808667</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-10-17T13:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: User defined field within expression</title>
      <link>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443966#M808668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its been a long day...thanks Sunny, much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 13:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/User-defined-field-within-expression/m-p/1443966#M808668</guid>
      <dc:creator>mattphillip</dc:creator>
      <dc:date>2017-10-17T13:38:39Z</dc:date>
    </item>
  </channel>
</rss>

