<?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: Set Analysis and IF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Branching-and-not-able-to-use-set-analysis/m-p/535344#M200028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a potential way to express this without including all the fields in a table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Bradley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2013 14:16:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-18T14:16:54Z</dc:date>
    <item>
      <title>Branching and not able to use set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Branching-and-not-able-to-use-set-analysis/m-p/535342#M200026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have posted a previous message asking about set analysis and IF statements;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the case i post below i would like to build the knowledge whereby i can use set analysis for two potential outcomes&amp;nbsp; based on the IF condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(OrderRowRab = 'N',&lt;/P&gt;&lt;P&gt;sum([sellingprice] * [xchange] * [total]),&lt;/P&gt;&lt;P&gt;sum([sellingprice] * [xchange] * [total]) * (1+ headerdisc) * (1+rowdiscount))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to make this a set analysis statement or find another way that i can aggregate the data onto a date dimension ie. Year or month or even Order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you see in the example it is replication the ordernummer 5 times(depending on the look up on the Row for the value 'N').&lt;/P&gt;&lt;P&gt;i would like it to show the ordernummer and the aggregate only not repeating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Bradley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Branching-and-not-able-to-use-set-analysis/m-p/535342#M200026</guid>
      <dc:creator />
      <dc:date>2013-09-18T13:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and IF</title>
      <link>https://community.qlik.com/t5/QlikView/Branching-and-not-able-to-use-set-analysis/m-p/535343#M200027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not possible to rewrite this as a set analysis expression. A set analysis expression calculates one set for the entire chart to filter the values used in the calculation of the expression. It cannot be used for execution branching.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 13:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Branching-and-not-able-to-use-set-analysis/m-p/535343#M200027</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-09-18T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and IF</title>
      <link>https://community.qlik.com/t5/QlikView/Branching-and-not-able-to-use-set-analysis/m-p/535344#M200028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a potential way to express this without including all the fields in a table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Bradley&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 14:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Branching-and-not-able-to-use-set-analysis/m-p/535344#M200028</guid>
      <dc:creator />
      <dc:date>2013-09-18T14:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Branching and not able to use set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Branching-and-not-able-to-use-set-analysis/m-p/535345#M200029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a workaround. You can create two columns each one with one Set expression then you set them to Conditional display = 0 and you create a third column where you have your test. i.e.&lt;BR /&gt;If(Isnull(Test), Column1, Column2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 23:21:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Branching-and-not-able-to-use-set-analysis/m-p/535345#M200029</guid>
      <dc:creator />
      <dc:date>2016-08-10T23:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Branching and not able to use set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Branching-and-not-able-to-use-set-analysis/m-p/535346#M200030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be a set analysis alternative to your if statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Radnummer = {"=Len(Trim(OrderRad_Ej_OHRabatt)) &amp;gt; 0"}&amp;gt;}&lt;/SPAN&gt;If(IsNull([Förs-kurs]),1,[Förs-kurs])),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Radnummer = {"=Len(Trim(OrderRad_Ej_OHRabatt)) = 0"}&amp;gt;}&lt;/SPAN&gt;If(IsNull([Förs-kurs]),1,[Förs-kurs])) *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(1 + Only(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Radnummer = {"=Len(Trim(OrderRad_Ej_OHRabatt)) = 0"}&amp;gt;}&lt;/SPAN&gt;OrderRad_Rabatt)) * (1+Only(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Radnummer = {"=Len(Trim(OrderRad_Ej_OHRabatt)) = 0"}&amp;gt;}&lt;/SPAN&gt;OrderHuvud_Rabatt)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;* [Förs pris] *[Ursprungligt antal]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="134300" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134300_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 10:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Branching-and-not-able-to-use-set-analysis/m-p/535346#M200030</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-11T10:28:26Z</dc:date>
    </item>
  </channel>
</rss>

