<?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: if to set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/1037332#M526167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe its not possible to completely turned the expression into Set Analysis. But if you can add the new field on Sales with some filters in the script level, may we can write set analysis on UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please post sample qvw ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2016 14:27:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-20T14:27:21Z</dc:date>
    <item>
      <title>if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/1037330#M526165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need some help whit this IF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I nedd change it to set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'=Sum(IF((SEG='A' and DATE_REN&amp;lt;AddMonths(vFec-1, -1)),1,IF(SEG='ADMINISTRACIONES',0,IF(DATE_REN &amp;lt; vFec-1,1,0)))*IF(SALES&amp;gt;0,SALES,0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 13:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/1037330#M526165</guid>
      <dc:creator />
      <dc:date>2016-01-20T13:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/1037331#M526166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;pls put some sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 13:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/1037331#M526166</guid>
      <dc:creator>ajsjoshua</dc:creator>
      <dc:date>2016-01-20T13:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/1037332#M526167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe its not possible to completely turned the expression into Set Analysis. But if you can add the new field on Sales with some filters in the script level, may we can write set analysis on UI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please post sample qvw ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 14:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/1037332#M526167</guid>
      <dc:creator />
      <dc:date>2016-01-20T14:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/1037333#M526168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To turn this expression in set analysis you need to add some flag fields with your if functions like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flags_ETL:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(SALES&amp;gt;0,SALES,0)) as PositiveSales,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(SEG='A', 1, 0) as FlagSeg,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(DATE_REN&amp;lt;AddMonths(vFec-1, -1), 1, IF(DATE_REN &amp;lt; vFec-1, 1, 0)) as FlagDate,&lt;/P&gt;&lt;P&gt;Resident YourMainTable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can use a expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;FlagSeg = {1}, FlagDate = {1}&amp;gt;} PositiveSales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/1037333#M526168</guid>
      <dc:creator>miguelbraga</dc:creator>
      <dc:date>2016-01-20T15:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: if to set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/1037334#M526169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be &lt;STRONG&gt;vFec&lt;/STRONG&gt; varibale is generated by user selections ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-to-set-analysis/m-p/1037334#M526169</guid>
      <dc:creator />
      <dc:date>2016-01-20T15:11:39Z</dc:date>
    </item>
  </channel>
</rss>

