<?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: QlikSense - Use getselection in expression in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245693#M24855</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 think I have got my self confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I am looking at replacing field names with selections in an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example (Sum(GetFieldSelections(PU,',',1))-Sum([Y8-Pu2]))/Count(distinct Key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am not clear on is can I specify which selection to use in the field. For example can I use the first 2 selections from the same field, one for the first part of the expression and the second in the same expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes a bit more sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Jan 2017 17:07:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-15T17:07:19Z</dc:date>
    <item>
      <title>QlikSense - Use getselection in expression</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245686#M24848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to add an expression like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum({$&amp;lt;Filter={&lt;SPAN style="color: #ff0000;"&gt;'NONE SEN'&lt;/SPAN&gt;}&amp;gt;}[vY8-Pu2])-Sum({$&amp;lt;Filter={&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="color: #ff0000;"&gt;'SEN'&lt;/SPAN&gt;}&amp;gt;}[vY8-Pu2]))/Count(distinct Key)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Replace the words in red to point at a selection in a filter pane.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Any help appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245686#M24848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense - Use getselection in expression</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245687#M24849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In filter field or another field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 15:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245687#M24849</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-13T15:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense - Use getselection in expression</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245688#M24850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Filter Field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 15:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245688#M24850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-13T15:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense - Use getselection in expression</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245689#M24851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you want them to be not static and based on selection, why even have set analysis? not sure I understand what your end goal is&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:00:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245689#M24851</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-13T16:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense - Use getselection in expression</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245690#M24852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be able to change an expression calculation based on a selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This stops having to duplicate expressions and altering them by using what I think might work getselection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245690#M24852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-13T16:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense - Use getselection in expression</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245691#M24853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yet again I am not clear what you want,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;Filter={&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'NONE SEN'&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;}&amp;gt;}[vY8-Pu2])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;won't change on selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this will&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;[vY8-Pu2])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am not sure why you need GetFieldSelection here? Unless there is something I need to know, I think the 2nd expression above should work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245691#M24853</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-13T16:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense - Use getselection in expression</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245692#M24854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to guess what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give a try with following expression and see , is that something you are looking for ? I meant check if that gives your desired result ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({1-$}[vY8-Pu2])/Count(distinct Key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will simply Sum ( All Non selected) - Sum( all selected based on Filter pane ) / count ( distinct key)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2017 16:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245692#M24854</guid>
      <dc:creator>girirajsinh</dc:creator>
      <dc:date>2017-01-13T16:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense - Use getselection in expression</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245693#M24855</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 think I have got my self confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I am looking at replacing field names with selections in an expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example (Sum(GetFieldSelections(PU,',',1))-Sum([Y8-Pu2]))/Count(distinct Key)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am not clear on is can I specify which selection to use in the field. For example can I use the first 2 selections from the same field, one for the first part of the expression and the second in the same expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes a bit more sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2017 17:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245693#M24855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-15T17:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense - Use getselection in expression</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245694#M24856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Store your selections in variables and use variables in set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;You can store the values, but &lt;STRONG&gt;NOT in the order they were selected&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;;&lt;/STRONG&gt; so you cannot make out which was selected first; leave out first two!&lt;/P&gt;&lt;P&gt;So your best bet is to create two list boxes for both filters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vFilter1 = GetfieldSelections(YourField1);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vFilter2 = GetfieldSelections(YourField2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(Sum({$&amp;lt;Filter={"&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vFilter1)"&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;}&amp;gt;}[vY8-Pu2])-Sum({$&amp;lt;Filter=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{"&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vFilter2)"&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&amp;gt;}[vY8-Pu2]))/Count(distinct Key)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2017 17:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245694#M24856</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-15T17:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense - Use getselection in expression</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245695#M24857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in case you want to separate two selected value from one field&lt;/P&gt;&lt;P&gt;you may try&lt;/P&gt;&lt;P&gt;SubField(GetFieldSelections(Field),',',1).&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;SubField(GetFieldSelections(Field),',',2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with assumptions that,&lt;/P&gt;&lt;P&gt;1. Field contails only 2 values Or will max two values can be selected.&lt;/P&gt;&lt;P&gt;2. Order of values selecte is not taken in to account . You can see that yourself that getfieldselections would return in one sort order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2017 17:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245695#M24857</guid>
      <dc:creator>girirajsinh</dc:creator>
      <dc:date>2017-01-15T17:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense - Use getselection in expression</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245696#M24858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1st Assumption] ?&lt;/P&gt;&lt;P&gt;If the field has only two values! wouldn't it be easier to place them directly in the set analysis rather than forcing the user to select the values to evaluate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd]?&lt;/P&gt;&lt;P&gt;We both agree order on selection is not taken into account, so how can we be so sure that Subfield 1 value needs to be placed in the first expression not the second??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2017 17:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245696#M24858</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-01-15T17:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: QlikSense - Use getselection in expression</title>
      <link>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245697#M24859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1st&lt;/P&gt;&lt;P&gt;yes it matters in only Max 2 selections...so lets drop only 2 value assumption&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd&lt;/P&gt;&lt;P&gt;yes you can not make out which one to use in which order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes its not final solution , I suggested those just to give him some direction in how he can separate two values from selected values. It's now upto him how he intends to take it further &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jan 2017 17:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikSense-Use-getselection-in-expression/m-p/1245697#M24859</guid>
      <dc:creator>girirajsinh</dc:creator>
      <dc:date>2017-01-15T17:54:37Z</dc:date>
    </item>
  </channel>
</rss>

