<?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: How to export formula with Set analysis using macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-export-formula-with-Set-analysis-using-macro/m-p/1405704#M425718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set testresult = ActiveDocument.Variables("vAging_WeeklyReport_LastWeek")&lt;/P&gt;&lt;P&gt;testresult= testresult.getcontent.string&lt;/P&gt;&lt;P&gt;testresult = activedocument.evaluate(testresult)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2017 11:27:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-25T11:27:36Z</dc:date>
    <item>
      <title>How to export formula with Set analysis using macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-export-formula-with-Set-analysis-using-macro/m-p/1405702#M425716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to export the value of this formula in an excel . Formula contains set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to export formula it doesn't recognize the set analysis..can anybody please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;testresult = activedocument.Evaluate("num(only({&amp;lt;Last8WeeksReferencedateOpened = {"$(=max(Last8WeeksReferencedateOpened))"}&amp;gt;}Aggr($(vAging_Incidents_weekly),Last8WeeksReferencedateOpened)),'#0.00')")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msgbox testresult&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 08:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-export-formula-with-Set-analysis-using-macro/m-p/1405702#M425716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-25T08:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to export formula with Set analysis using macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-export-formula-with-Set-analysis-using-macro/m-p/1405703#M425717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. create a variable e.g vTest&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;num(only({&amp;lt;Last8WeeksReferencedateOpened = {"$(=max(Last8WeeksReferencedateOpened))"}&amp;gt;}Aggr($(vAging_Incidents_weekly),Last8WeeksReferencedateOpened)),'#0.00')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; 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;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2. Change Macro to:&lt;/SPAN&gt;&lt;SPAN style="color: #000000; 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;&lt;STRONG&gt;sub test&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;testresult = activedocument.Evaluate("vTest")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;msgbox(testresult)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end sub&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 08:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-export-formula-with-Set-analysis-using-macro/m-p/1405703#M425717</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-09-25T08:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to export formula with Set analysis using macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-export-formula-with-Set-analysis-using-macro/m-p/1405704#M425718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set testresult = ActiveDocument.Variables("vAging_WeeklyReport_LastWeek")&lt;/P&gt;&lt;P&gt;testresult= testresult.getcontent.string&lt;/P&gt;&lt;P&gt;testresult = activedocument.evaluate(testresult)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 11:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-export-formula-with-Set-analysis-using-macro/m-p/1405704#M425718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-25T11:27:36Z</dc:date>
    </item>
  </channel>
</rss>

