<?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 writing set expression in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/writing-set-expression-in-load-script/m-p/1535487#M600405</link>
    <description>&lt;P&gt;&lt;BR /&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I need the following set expression to be written in the load script so that it get optimized&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum(&lt;BR /&gt;aggr( if(house_date=date(today()),sum({&amp;lt;ref_date={"$(=date(lastworkdate(today(),1)))"}&amp;gt;}Stock * $(vfilter5)),&lt;BR /&gt;RangeMax(sum({&amp;lt;idDate={1}&amp;gt;}aggr(stock_Forecast * $(vfilter5bis),key_OA))&lt;BR /&gt;-sum(aggr(avg_forecast* $(vfilter5bis) ,key_OA)),0)),[Nivpe 1 - Enseigne],LB_LEV_2,[Nivpe - Entrep],op_Forecast))&lt;/P&gt;&lt;P&gt;Could you please help me out on this..&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:39:17 GMT</pubDate>
    <dc:creator>lalprasanth</dc:creator>
    <dc:date>2024-11-16T04:39:17Z</dc:date>
    <item>
      <title>writing set expression in load script</title>
      <link>https://community.qlik.com/t5/QlikView/writing-set-expression-in-load-script/m-p/1535487#M600405</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I need the following set expression to be written in the load script so that it get optimized&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum(&lt;BR /&gt;aggr( if(house_date=date(today()),sum({&amp;lt;ref_date={"$(=date(lastworkdate(today(),1)))"}&amp;gt;}Stock * $(vfilter5)),&lt;BR /&gt;RangeMax(sum({&amp;lt;idDate={1}&amp;gt;}aggr(stock_Forecast * $(vfilter5bis),key_OA))&lt;BR /&gt;-sum(aggr(avg_forecast* $(vfilter5bis) ,key_OA)),0)),[Nivpe 1 - Enseigne],LB_LEV_2,[Nivpe - Entrep],op_Forecast))&lt;/P&gt;&lt;P&gt;Could you please help me out on this..&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/writing-set-expression-in-load-script/m-p/1535487#M600405</guid>
      <dc:creator>lalprasanth</dc:creator>
      <dc:date>2024-11-16T04:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: writing set expression in load script</title>
      <link>https://community.qlik.com/t5/QlikView/writing-set-expression-in-load-script/m-p/1535525#M600406</link>
      <description>&lt;P&gt;You cannot use the Aggr function in the script and neither can you use set analysis expressions. You'll have to create tables to collect the values you need to calculate any results and intermediate results. If the variables you use contain expressions then you need to calculate those values first too, probably in more intermediate tables.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 08:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/writing-set-expression-in-load-script/m-p/1535525#M600406</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-01-27T08:40:10Z</dc:date>
    </item>
  </channel>
</rss>

