<?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 Macro Query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-Query/m-p/190965#M53249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use another field.&lt;/P&gt;&lt;P&gt;In the script you can load a History_Date and, reading the same values, History_Date_Referred&lt;/P&gt;&lt;P&gt;History_Date_Referred hasn't got any join with tables.&lt;BR /&gt;Use "Select Only" functionality with that field..&lt;/P&gt;&lt;P&gt;If you want to get a Value of a date you can use:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;History_Date={$(=History_Date_Referred)}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;If you want a trend you can use a calculate dimension like month(History_Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2009 21:06:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-17T21:06:05Z</dc:date>
    <item>
      <title>Macro Query</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Query/m-p/190964#M53248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;On other tabs of the QV appliation, I have to show data for only one date. For this I used "Always Selected One" as true in listbox.&lt;/P&gt;&lt;P&gt;But on Trends tab I have to show the data for all the dates...it means when I move to Trends tab, I have to clear all the selection. To achieve this, I am using below macro "On Activate" of Trends Tab...&lt;/P&gt;&lt;P&gt;****************************************************************&lt;BR /&gt; Set fld = ActiveDocument.GetField("History_Date")&lt;/P&gt;&lt;P&gt;Set prop = fld.GetProperties&lt;BR /&gt; prop.ShowAlternatives = False&lt;BR /&gt; prop.OneAndOnlyOne = False&lt;BR /&gt; fld.SetProperties prop&lt;/P&gt;&lt;P&gt;ActiveDocument.ClearAll True&lt;BR /&gt;&lt;BR /&gt; Set prop = Nothing&lt;BR /&gt; Set fld = Nothing&lt;BR /&gt;****************************************************************&lt;/P&gt;&lt;P&gt;But its not working. And on Trends tab also, I am getting the graph for one date only.&lt;/P&gt;&lt;P&gt;This happens when I view the dashboard thru Web - ie thru Internet Explorer. Its working fine if I see it on my standalone system.&lt;/P&gt;&lt;P&gt;Please suggest any solution or workaround for this!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 19:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Query/m-p/190964#M53248</guid>
      <dc:creator />
      <dc:date>2009-12-17T19:04:52Z</dc:date>
    </item>
    <item>
      <title>Macro Query</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Query/m-p/190965#M53249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use another field.&lt;/P&gt;&lt;P&gt;In the script you can load a History_Date and, reading the same values, History_Date_Referred&lt;/P&gt;&lt;P&gt;History_Date_Referred hasn't got any join with tables.&lt;BR /&gt;Use "Select Only" functionality with that field..&lt;/P&gt;&lt;P&gt;If you want to get a Value of a date you can use:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;History_Date={$(=History_Date_Referred)}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;If you want a trend you can use a calculate dimension like month(History_Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 21:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Query/m-p/190965#M53249</guid>
      <dc:creator />
      <dc:date>2009-12-17T21:06:05Z</dc:date>
    </item>
    <item>
      <title>Macro Query</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Query/m-p/190966#M53250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;You mean to say i have to create one variable History_Date_Referred and populate it on the change of History_Date field.&lt;/P&gt;&lt;P&gt;In that case also, if i clear History_Date field, it will throw an error while i am setting the selected value in to variable thru macro.&lt;/P&gt;&lt;P&gt;Moreover, we r working on QV Server where Set Analysis will not work ie we are using QV Server version before 8.50&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2009 14:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Query/m-p/190966#M53250</guid>
      <dc:creator />
      <dc:date>2009-12-18T14:03:17Z</dc:date>
    </item>
  </channel>
</rss>

