<?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: Formula setting variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011510#M955544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the action expression field, enter this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;='&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt;"&gt;= Pick(Match(GetCurrentField([MM-WK-GG]), ' &amp;amp; chr(39) &amp;amp; 'DataVend' &amp;amp; chr(39) &amp;amp; ', ' &amp;amp; chr(39) &amp;amp; 'MMM' &amp;amp; chr(39) &amp;amp; ', ' &amp;amp; chr(39) &amp;amp; 'WK'&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;), '&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;G'&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;, '&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;M'&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;, '&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;S'&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;)'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may have accidentally omitted a single quote. Check the number of quotes if it doesn't result in eGMS containing the correct formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2015 16:56:49 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2015-11-17T16:56:49Z</dc:date>
    <item>
      <title>Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011507#M955541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all....&lt;/P&gt;&lt;P&gt;I have a variable: &lt;/P&gt;&lt;P&gt;eGMS = Pick(Match(GetCurrentField([MM-WK-GG]), 'DataVend', 'MMM', 'WK'), 'G', 'M', 'S')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some cases, there is a button that put eGMS = 'G'.&lt;/P&gt;&lt;P&gt;With a trigger when I leave the sheet (where there is the button) I am trying to give the variable the formula variable but I'm not able :-(.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried also with a 2nd variable i.e.:&lt;/P&gt;&lt;P&gt;* eGMS_Formula = Pick(Match(GetCurrentField([MM-WK-GG]), 'DataVend', 'MMM', 'WK'), 'G', 'M', 'S')&lt;/P&gt;&lt;P&gt;* trigger : eGMS = $(eGMS_Formula)&lt;/P&gt;&lt;P&gt;* trigger : eGMS = '$(eGMS_Formula)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I've not the possoibility to make variable as expression/ formula.&lt;/P&gt;&lt;P&gt;THANKS a lot!&lt;/P&gt;&lt;P&gt;CriL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 12:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011507#M955541</guid>
      <dc:creator>clovati</dc:creator>
      <dc:date>2015-11-17T12:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011508#M955542</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;What is it exactly you are wanting to happen here?&lt;/P&gt;&lt;P&gt;On leaving the sheet what are you try to get into a variable?&lt;/P&gt;&lt;P&gt;Is this the actual string value '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Pick(Match(GetCurrentField([MM-WK-GG]), 'DataVend', 'MMM', 'WK'), 'G', 'M', 'S')&lt;/SPAN&gt;'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 13:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011508#M955542</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-17T13:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011509#M955543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark! Thanks first af all.&lt;/P&gt;&lt;P&gt;Yes, I want eGMS will still be 'Pick...' as when I open QWV ex-novo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 13:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011509#M955543</guid>
      <dc:creator>clovati</dc:creator>
      <dc:date>2015-11-17T13:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011510#M955544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the action expression field, enter this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;='&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 8pt;"&gt;= Pick(Match(GetCurrentField([MM-WK-GG]), ' &amp;amp; chr(39) &amp;amp; 'DataVend' &amp;amp; chr(39) &amp;amp; ', ' &amp;amp; chr(39) &amp;amp; 'MMM' &amp;amp; chr(39) &amp;amp; ', ' &amp;amp; chr(39) &amp;amp; 'WK'&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;), '&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;G'&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;, '&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;M'&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;, '&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;S'&lt;SPAN style="color: #3d3d3d;"&gt; &amp;amp; chr(39) &amp;amp; '&lt;/SPAN&gt;)'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may have accidentally omitted a single quote. Check the number of quotes if it doesn't result in eGMS containing the correct formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 16:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011510#M955544</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-11-17T16:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011511#M955545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Enter the trigger value expression without $(). You don't want it evaluated, you want the literal string.&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; trigger : eGMS = eGMS_Formula&lt;/SPAN&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow"&gt;http://qlikviewcookbook.com&lt;/A&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 18:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011511#M955545</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-11-17T18:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011512#M955546</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;Just like Rob has mentioned. Just enter the string like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Pick(Match(GetCurrentField([MM-WK-GG]), 'DataVend', 'MMM', 'WK'), 'G', 'M', 'S')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Mark&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 19:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011512#M955546</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-17T19:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011513#M955547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's ok! Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011513#M955547</guid>
      <dc:creator>clovati</dc:creator>
      <dc:date>2015-11-18T10:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011514#M955548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter, I don't understand the need for escaping all the quotes. Since the expression string is not dynamic, can't it just be entered in the Action Value directly as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pick(Match(GetCurrentField([MM-WK-GG]), 'DataVend', 'MMM', 'WK'), 'G', 'M', 'S')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:52:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011514#M955548</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-11-18T14:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011515#M955549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to mark as RIGHT ANSWER.. but where?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da: Rob Wunderlich &lt;/P&gt;&lt;P&gt;Inviato: mercoledì 18 novembre 2015 15:53&lt;/P&gt;&lt;P&gt;A: Lovati Cristina&lt;/P&gt;&lt;P&gt;Oggetto: Qlik Community: New reply - Formula setting variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 14:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011515#M955549</guid>
      <dc:creator>clovati</dc:creator>
      <dc:date>2015-11-18T14:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011516#M955550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about clicking "Correct Answer" near the post that is the correct answer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 15:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011516#M955550</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-11-18T15:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011517#M955551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Da: Onno van Knotsenburg &lt;/P&gt;&lt;P&gt;Inviato: mercoledì 18 novembre 2015 16:26&lt;/P&gt;&lt;P&gt;A: Lovati Cristina&lt;/P&gt;&lt;P&gt;Oggetto: Re:  - Formula setting variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 15:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011517#M955551</guid>
      <dc:creator>clovati</dc:creator>
      <dc:date>2015-11-18T15:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011518#M955552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm... Apparently your interface looks different then mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway,&lt;/P&gt;&lt;P&gt;I marked it for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2015 16:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011518#M955552</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-11-18T16:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Formula setting variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011519#M955553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was assuming that she wanted to assign the formula string to the variable, instead of the formula result. Wrong assumption apparently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW your post below does the same but in a much more efficient way.I learned a thing, again. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Edit] On rereading your post, I finally saw that you omitted the equal sign. Pfffft, it's getting worse... I should become a member of your "we test before we post"-association &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, 19 Nov 2015 07:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-setting-variable/m-p/1011519#M955553</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-11-19T07:30:45Z</dc:date>
    </item>
  </channel>
</rss>

