<?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 Change value of variable in Buttons (or Macro) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-value-of-variable-in-Buttons-or-Macro/m-p/727449#M260722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to insert three buttons, "previous month", "current month" and "next month". For getting the actual month I got a "MonthCounter" integer variable. But when I set it in the buttons the change in this variable is not done right away (That means I have to click twice to get the chage working).&lt;/P&gt;&lt;P&gt;So I thought of changing it with a macro but don't get it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone any Idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2014 07:21:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-22T07:21:55Z</dc:date>
    <item>
      <title>Change value of variable in Buttons (or Macro)</title>
      <link>https://community.qlik.com/t5/QlikView/Change-value-of-variable-in-Buttons-or-Macro/m-p/727449#M260722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to insert three buttons, "previous month", "current month" and "next month". For getting the actual month I got a "MonthCounter" integer variable. But when I set it in the buttons the change in this variable is not done right away (That means I have to click twice to get the chage working).&lt;/P&gt;&lt;P&gt;So I thought of changing it with a macro but don't get it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone any Idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 07:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-value-of-variable-in-Buttons-or-Macro/m-p/727449#M260722</guid>
      <dc:creator />
      <dc:date>2014-08-22T07:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change value of variable in Buttons (or Macro)</title>
      <link>https://community.qlik.com/t5/QlikView/Change-value-of-variable-in-Buttons-or-Macro/m-p/727450#M260723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you didn't need variables for this. You could use OnSelect-Actions within the buttons, try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Button for current month with search-string:&lt;/P&gt;&lt;P&gt;= only({&amp;lt;Month = {"$(=month(today()))"}&amp;gt;} MonthCounter) // and +- 1 for next/previous month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/group/1004"&gt;German User Group - Deutsche User Group&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 11:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-value-of-variable-in-Buttons-or-Macro/m-p/727450#M260723</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-08-22T11:52:41Z</dc:date>
    </item>
  </channel>
</rss>

