<?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 SQL select statment in vbscript macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232039#M83711</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;yes, I want to query from the loaded data. I am doing the following, but there seems to be an error. What I want to do is to query a field1 of a table, where field2 = 1&lt;/P&gt;&lt;P&gt;s = ActiveDocument.Evaluate("if(COLUMN_1=1,COLUMN_2)")&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 11:03:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-05T11:03:19Z</dc:date>
    <item>
      <title>SQL select statment in vbscript macro</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232037#M83709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I need a sql select statement in a macro to query a particular value of a field. How can I do that??&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 09:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232037#M83709</guid>
      <dc:creator />
      <dc:date>2010-05-05T09:40:24Z</dc:date>
    </item>
    <item>
      <title>SQL select statment in vbscript macro</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232038#M83710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you mean to query value from your loaded data, not external source, then&lt;BR /&gt;activedocument.Evaluate()&lt;BR /&gt;allows to retrieve or calculate a value using QV native syntax .&lt;BR /&gt;&lt;BR /&gt;sls = activedocument.Evaluate("sum(if(CustomerID=1,Sales))")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 10:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232038#M83710</guid>
      <dc:creator>tanelry</dc:creator>
      <dc:date>2010-05-05T10:34:26Z</dc:date>
    </item>
    <item>
      <title>SQL select statment in vbscript macro</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232039#M83711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;yes, I want to query from the loaded data. I am doing the following, but there seems to be an error. What I want to do is to query a field1 of a table, where field2 = 1&lt;/P&gt;&lt;P&gt;s = ActiveDocument.Evaluate("if(COLUMN_1=1,COLUMN_2)")&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 11:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232039#M83711</guid>
      <dc:creator />
      <dc:date>2010-05-05T11:03:19Z</dc:date>
    </item>
    <item>
      <title>SQL select statment in vbscript macro</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232040#M83712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should use some aggregation function, like only()&lt;/P&gt;&lt;P&gt;s = ActiveDocument.Evaluate("only(if(COLUMN_1=1,COLUMN_2))")&lt;/P&gt;&lt;P&gt;I suggest you debug your syntax inside a text object before using in macro. If it works in text object then it works in macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 11:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232040#M83712</guid>
      <dc:creator>tanelry</dc:creator>
      <dc:date>2010-05-05T11:42:28Z</dc:date>
    </item>
    <item>
      <title>SQL select statment in vbscript macro</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232041#M83713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it works now&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 12:07:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232041#M83713</guid>
      <dc:creator />
      <dc:date>2010-05-05T12:07:43Z</dc:date>
    </item>
    <item>
      <title>SQL select statment in vbscript macro</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232042#M83714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I evaluate an expression also independently from the selections, including also the not selected values??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 08:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-statment-in-vbscript-macro/m-p/232042#M83714</guid>
      <dc:creator />
      <dc:date>2010-05-06T08:38:12Z</dc:date>
    </item>
  </channel>
</rss>

