<?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 write set expression in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-set-expression-in-load-script/m-p/1173981#M463573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set Analysis cannot be used in Load Script. It will be applied in visualization parts.&lt;/P&gt;&lt;P&gt;May be for your case you could use Where condition to restrict in script.&lt;/P&gt;&lt;P&gt;Try something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Field1, Sum(&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;realTime) AS RealTime&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;Resident Table Where &lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;TagName=fillA;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jun 2016 14:54:20 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2016-06-22T14:54:20Z</dc:date>
    <item>
      <title>How to write set expression in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-set-expression-in-load-script/m-p/1173980#M463572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;HI all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;can anyone please help me, how to write a set expression in load script.. I have an sql query in which a field value realtime has the values from three different Tags. usually, i use the below set expression&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Expresion : Sum({$&amp;lt;TagName={fillA}&amp;gt;}realTime)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;to get the value corresponding to each Tag..&amp;nbsp; Usually, I used to assign this expression to the variable in the variable overview window. But, now i want to calculate this expression in script and than i have to use that value in other variable and the resulting value should be assign to the variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;so i want that to be done in load script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;In the community, i read about using of some flags to achieve this, but i couldn't understand that.. can any one please help me with this ..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Ganesh&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-set-expression-in-load-script/m-p/1173980#M463572</guid>
      <dc:creator />
      <dc:date>2016-06-22T14:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to write set expression in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-set-expression-in-load-script/m-p/1173981#M463573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set Analysis cannot be used in Load Script. It will be applied in visualization parts.&lt;/P&gt;&lt;P&gt;May be for your case you could use Where condition to restrict in script.&lt;/P&gt;&lt;P&gt;Try something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Field1, Sum(&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;realTime) AS RealTime&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;Resident Table Where &lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;TagName=fillA;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:54:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-set-expression-in-load-script/m-p/1173981#M463573</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2016-06-22T14:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to write set expression in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-set-expression-in-load-script/m-p/1173982#M463574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ganesh,&lt;/P&gt;&lt;P&gt;You cannot use set analisys on script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can write it like this &lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; Sum(IF(TagName='fillA',realTime)) as realTimefillA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Regards!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 14:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-set-expression-in-load-script/m-p/1173982#M463574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-22T14:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to write set expression in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-set-expression-in-load-script/m-p/1173983#M463575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you celambrasan... It is really helpful for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 10:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-set-expression-in-load-script/m-p/1173983#M463575</guid>
      <dc:creator />
      <dc:date>2016-06-23T10:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to write set expression in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-set-expression-in-load-script/m-p/1173984#M463576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the expression, i used this expression to get the field value..its really helpful for my problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 10:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-set-expression-in-load-script/m-p/1173984#M463576</guid>
      <dc:creator />
      <dc:date>2016-06-23T10:14:26Z</dc:date>
    </item>
  </channel>
</rss>

