<?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 Triggering a macro on the evaluation of an expression variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324918#M1187365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use a 2nd variable that equals the first then set the trigger to run on that variable change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCalc = if(Sum(Rate) &amp;gt; 0, 'True', 'False') &lt;/P&gt;&lt;P&gt;vAns = $(=vCalc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then set the trigger to run when vAns changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Oct 2011 18:30:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-10T18:30:09Z</dc:date>
    <item>
      <title>Triggering a macro on the evaluation of an expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324917#M1187364</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 need a document variable event 'on change' trigger to run a macro, my problem is that the variable is an expression, the triggers only seem to work when the actual value contained in the variable changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vWeeklyMonthly &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which contains&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetCurrentField(date_dimension) = 'Week Ending','Weekly',if(GetCurrentField(date_dimension)='Month Year','Monthly'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to trigger my macro when the expression in the variable changes from 'Monthly' to 'Weekly' or vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone know how to achive this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&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>Mon, 10 Oct 2011 12:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324917#M1187364</guid>
      <dc:creator />
      <dc:date>2011-10-10T12:23:42Z</dc:date>
    </item>
    <item>
      <title>Triggering a macro on the evaluation of an expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324918#M1187365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use a 2nd variable that equals the first then set the trigger to run on that variable change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCalc = if(Sum(Rate) &amp;gt; 0, 'True', 'False') &lt;/P&gt;&lt;P&gt;vAns = $(=vCalc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then set the trigger to run when vAns changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 18:30:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324918#M1187365</guid>
      <dc:creator />
      <dc:date>2011-10-10T18:30:09Z</dc:date>
    </item>
    <item>
      <title>Triggering a macro on the evaluation of an expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324919#M1187366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; This doesn't work unfortunately, it would seem that the content of the variable needs to change e.g. from 1 to 0&lt;/P&gt;&lt;P&gt; as the expression itself never changes it doesn't trigger the macro. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 08:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324919#M1187366</guid>
      <dc:creator />
      <dc:date>2011-10-11T08:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a macro on the evaluation of an expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324920#M1187367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a little demo...&amp;nbsp; it seems to be working.&amp;nbsp; Maybe I missunderstood the question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 15:31:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324920#M1187367</guid>
      <dc:creator />
      <dc:date>2011-10-11T15:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a macro on the evaluation of an expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324921#M1187368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your example works perfectly, I think the problem arises when trying to trigger a macro on a expression which is the result of a cyclic group. I've attached a file&lt;/P&gt;&lt;P&gt;which demonstrates this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Previous discussion on topic :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/13132"&gt;Trigger on Cyclic groups&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 09:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324921#M1187368</guid>
      <dc:creator />
      <dc:date>2011-10-12T09:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a macro on the evaluation of an expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324922#M1187369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if I understand correctly... You want to trigger a macro when the cyclic group changes? Yes?&amp;nbsp; If that is correct then you should be able to just add a trigger to the variable you set up (vCalc2) and it will run the macro code.&amp;nbsp; Am I understanding correctly now or am I still missing the idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 16:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324922#M1187369</guid>
      <dc:creator />
      <dc:date>2011-10-12T16:30:45Z</dc:date>
    </item>
    <item>
      <title>Triggering a macro on the evaluation of an expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324923#M1187370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's exactly what I'm trying to do. Unfortunatley adding a trigger to vCalc2 doesn't seem to work, if you click the &lt;/P&gt;&lt;P&gt; cyclic group in 'zack_2.qvw' the macro does not trigger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 09:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324923#M1187370</guid>
      <dc:creator />
      <dc:date>2011-10-13T09:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a macro on the evaluation of an expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324924#M1187371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's very strange... on my version of zack_2 it works.&amp;nbsp; Everytime you change the cyclic group from 'Name' to 'Sex' or vice versa it runs the macro.&amp;nbsp; What version of QlikView are you using?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mine is: 10.00.9061.7 SR3 64-bit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 15:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324924#M1187371</guid>
      <dc:creator />
      <dc:date>2011-10-13T15:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a macro on the evaluation of an expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324925#M1187372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;10.00.8935.7 SR2 32 - bit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please don't tell me this is yet another bug!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 08:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324925#M1187372</guid>
      <dc:creator />
      <dc:date>2011-10-14T08:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Triggering a macro on the evaluation of an expression variable</title>
      <link>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324926#M1187373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well it looks like it may be...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Before_Cyclic_Change.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7872_Before_Cyclic_Change.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="After_Cyclic_Change.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7873_After_Cyclic_Change.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I did was change the cyclic group...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 15:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Triggering-a-macro-on-the-evaluation-of-an-expression-variable/m-p/324926#M1187373</guid>
      <dc:creator />
      <dc:date>2011-10-14T15:06:27Z</dc:date>
    </item>
  </channel>
</rss>

