<?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 Expression in the script. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-in-the-script/m-p/490592#M183267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create expression with Set Analysis directly in load script.&lt;/P&gt;&lt;P&gt;I create dataIsland but it doesn't work !!&lt;/P&gt;&lt;P&gt;Exmple:&lt;/P&gt;&lt;P&gt;LOAD,&lt;/P&gt;&lt;P&gt;Field1 ,&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Année={$(=Max(Année))}&amp;gt;} Ventes) as SalesY,&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Année={$(=Max(Année)-1)}&amp;gt;} Ventes) as SalesLY,&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Année={$(=Max(Année))}&amp;gt;} Ventes) / Sum({$&amp;lt;Année={$(=Max(Année))}&amp;gt;} Marge) as Expr,&lt;/P&gt;&lt;P&gt;Fields2,&lt;/P&gt;&lt;P&gt;... RESIDENT Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I create the Set Analysis Expression in the script with Table Sales (Sales field) and Table Store (Store)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables Sales:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * , Sales FROM SALES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, SalesNet FROM SALES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, Store FROM STORE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;IF(&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(=Max(Year))}, Store={'A','B'}&amp;gt;} Sales) &amp;gt; Sum({$&amp;lt;Year={$(=Max(Year))}, Store={'A','B'}&amp;gt;} SalesNet)&lt;/P&gt;&lt;P&gt;, 'Visible', 'Unvisible')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;, ....&lt;/P&gt;&lt;P&gt;RESIDENT TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to obtain this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Sep 2013 14:07:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-28T14:07:57Z</dc:date>
    <item>
      <title>Expression in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-the-script/m-p/490592#M183267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to create expression with Set Analysis directly in load script.&lt;/P&gt;&lt;P&gt;I create dataIsland but it doesn't work !!&lt;/P&gt;&lt;P&gt;Exmple:&lt;/P&gt;&lt;P&gt;LOAD,&lt;/P&gt;&lt;P&gt;Field1 ,&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Année={$(=Max(Année))}&amp;gt;} Ventes) as SalesY,&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Année={$(=Max(Année)-1)}&amp;gt;} Ventes) as SalesLY,&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Année={$(=Max(Année))}&amp;gt;} Ventes) / Sum({$&amp;lt;Année={$(=Max(Année))}&amp;gt;} Marge) as Expr,&lt;/P&gt;&lt;P&gt;Fields2,&lt;/P&gt;&lt;P&gt;... RESIDENT Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I create the Set Analysis Expression in the script with Table Sales (Sales field) and Table Store (Store)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables Sales:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * , Sales FROM SALES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, SalesNet FROM SALES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, Store FROM STORE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expressions:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;IF(&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year={$(=Max(Year))}, Store={'A','B'}&amp;gt;} Sales) &amp;gt; Sum({$&amp;lt;Year={$(=Max(Year))}, Store={'A','B'}&amp;gt;} SalesNet)&lt;/P&gt;&lt;P&gt;, 'Visible', 'Unvisible')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;, ....&lt;/P&gt;&lt;P&gt;RESIDENT TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible to obtain this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 14:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-the-script/m-p/490592#M183267</guid>
      <dc:creator />
      <dc:date>2013-09-28T14:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression in the script.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-the-script/m-p/490593#M183268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can use Set Analysis in Script but you can use multiple if conditions aggregate functions with Group by Statements.&lt;/P&gt;&lt;P&gt;But this will make your Script quite Complex&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Sep 2013 10:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-the-script/m-p/490593#M183268</guid>
      <dc:creator>qlikpahadi07</dc:creator>
      <dc:date>2013-09-30T10:41:01Z</dc:date>
    </item>
  </channel>
</rss>

