<?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: Applying only the selections from one data field to the data set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Applying-only-the-selections-from-one-data-field-to-the-data-set/m-p/436089#M489184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check with this expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; font-family: Arial; color: #000000;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; font-family: Arial; color: #000000;"&gt;( {1&amp;lt;[Project Model Name] = {$(vProcessName)}&amp;gt;} [Project Duration] &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; font-family: Arial; color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it doesn't works then change the variable expression to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;vProcessName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=chr(39)&amp;amp;GetFieldSelections(&lt;SPAN style="color: #800000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;[Project Model Name]&lt;/SPAN&gt;,chr(39)&amp;amp;','&amp;amp;chr(39), 99)&amp;amp;chr(39)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2012 22:25:20 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2012-12-13T22:25:20Z</dc:date>
    <item>
      <title>Applying only the selections from one data field to the data set</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-only-the-selections-from-one-data-field-to-the-data-set/m-p/436086#M489181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;Hello, I have a set expression formula like this:&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;( {1&amp;lt;[Project Model Name] = {"$(#vProcessName)"}&amp;gt;} [Project Duration] &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;) .&amp;nbsp; This will take the average of [Project Duration] from the entire data set, ignoring all selected data values except for those where [Project Model Name] equals the value of the variable vProcessName.&amp;nbsp; This works well when there is &lt;EM&gt;only one &lt;/EM&gt;selected value for [Project Model Name] that I can assign to the variable vProcessName.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I'm looking for a set expression that will allow me to apply &lt;EM&gt;multiple selections&lt;/EM&gt; for [Project Model Name] and still ignore all the other selected data values in the data set.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 21:38:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-only-the-selections-from-one-data-field-to-the-data-set/m-p/436086#M489181</guid>
      <dc:creator />
      <dc:date>2012-12-13T21:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Applying only the selections from one data field to the data set</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-only-the-selections-from-one-data-field-to-the-data-set/m-p/436087#M489182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your expression for #vProcessName?&lt;/P&gt;&lt;P&gt;Can you check with this expr&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; font-family: Arial; color: #000000;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; font-family: Arial; color: #000000;"&gt;( {1&amp;lt;[Project Model Name] = {$(#vProcessName)}&amp;gt;} [Project Duration] &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; font-family: Arial; color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 21:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-only-the-selections-from-one-data-field-to-the-data-set/m-p/436087#M489182</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-12-13T21:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Applying only the selections from one data field to the data set</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-only-the-selections-from-one-data-field-to-the-data-set/m-p/436088#M489183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the expression that sets vProcessName, it's on the OnActivateSheet event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Project Model Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style=": ; font-size: 1;"&gt;&lt;P&gt;I tried your suggestion of removing the quotations from around the vProcessName expression and that&lt;/P&gt;&lt;/SPAN&gt; doesn't seem to work.&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 22:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-only-the-selections-from-one-data-field-to-the-data-set/m-p/436088#M489183</guid>
      <dc:creator />
      <dc:date>2012-12-13T22:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Applying only the selections from one data field to the data set</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-only-the-selections-from-one-data-field-to-the-data-set/m-p/436089#M489184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check with this expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; font-family: Arial; color: #000000;"&gt;Avg&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; font-family: Arial; color: #000000;"&gt;( {1&amp;lt;[Project Model Name] = {$(vProcessName)}&amp;gt;} [Project Duration] &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 10pt; font-family: Arial; color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it doesn't works then change the variable expression to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;vProcessName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=chr(39)&amp;amp;GetFieldSelections(&lt;SPAN style="color: #800000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;[Project Model Name]&lt;/SPAN&gt;,chr(39)&amp;amp;','&amp;amp;chr(39), 99)&amp;amp;chr(39)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 22:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-only-the-selections-from-one-data-field-to-the-data-set/m-p/436089#M489184</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-12-13T22:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Applying only the selections from one data field to the data set</title>
      <link>https://community.qlik.com/t5/QlikView/Applying-only-the-selections-from-one-data-field-to-the-data-set/m-p/436090#M489185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The updated formula didn't work and neither did the expression to set the vProcessName.&amp;nbsp; I tried modifing the formal to the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;='('&amp;amp;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(34)&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetFieldSelections&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Project Model Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(34)&amp;amp;'|'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(34), 99)&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(34)&amp;amp;')' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This formula put the list in parentheses (), separated by pipes |, and it enclosed each selection value in quotations.&amp;nbsp; I thought this might work since this is the format you have to use to set a value of a data field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing seems to be working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 01:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Applying-only-the-selections-from-one-data-field-to-the-data-set/m-p/436090#M489185</guid>
      <dc:creator />
      <dc:date>2012-12-17T01:42:34Z</dc:date>
    </item>
  </channel>
</rss>

