<?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: Replacing if with set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862116#M301737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Replace &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Field_To_Be_Ignored &lt;/STRONG&gt;by your field name&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(&lt;STRONG&gt;{&amp;lt;Field_To_Be_Ignored=&amp;gt;}&lt;/STRONG&gt; if(WhStockBalance&amp;gt;=ReservedQty,ReservedQty,WhStockBalance)*UnitCostPrice)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2015 12:59:06 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2015-05-14T12:59:06Z</dc:date>
    <item>
      <title>Replacing if with set</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862114#M301735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys.&lt;/P&gt;&lt;P&gt;I know how to replace if with set analysis when expression matters only on one variable but how to replace it in this case?&lt;/P&gt;&lt;P&gt;Sum(if(WhStockBalance&amp;gt;=ReservedQty,ReservedQty,WhStockBalance)*UnitCostPrice)&lt;/P&gt;&lt;P&gt;I need to have some fields ignored over selections but i can't figure it out how to convert this expression into set analysis&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 12:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862114#M301735</guid>
      <dc:creator />
      <dc:date>2015-05-14T12:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing if with set</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862115#M301736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set Analysis doesn't execute a contitional evaluation so I think you cannot change your if condition with set analysis ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 12:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862115#M301736</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-05-14T12:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing if with set</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862116#M301737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Replace &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Field_To_Be_Ignored &lt;/STRONG&gt;by your field name&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(&lt;STRONG&gt;{&amp;lt;Field_To_Be_Ignored=&amp;gt;}&lt;/STRONG&gt; if(WhStockBalance&amp;gt;=ReservedQty,ReservedQty,WhStockBalance)*UnitCostPrice)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 12:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862116#M301737</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-05-14T12:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing if with set</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862117#M301738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to ignore selections into Field 1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;Field1=&amp;gt;}if(WhStockBalance&amp;gt;=ReservedQty,ReservedQty,WhStockBalance)*UnitCostPrice)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 12:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862117#M301738</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-14T12:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing if with set</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862118#M301739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can use RangeMin in order to replace your IF too&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;Field1=&amp;gt;} Rangemin(WhStockBalance,ReservedQty)*UnitCostPrice)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 13:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862118#M301739</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-14T13:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing if with set</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862119#M301740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julius,&lt;/P&gt;&lt;P&gt;You're going to have to do something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;IF(&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;WhStockBalance&amp;gt;=ReservedQty,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 13px;"&gt; SUM(&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;ReservedQty*&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;UnitCostPrice),&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt; SUM(&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;WhStockBalance*&lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;UnitCostPrice)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;A bit more verbose than you wanted, but should work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;George&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 13:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862119#M301740</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2015-05-14T13:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing if with set</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862120#M301741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow guys thanks i can ignore now. I will give another question then. Can i combine fields that needed to be ignored and the field value to be selected. For example now i can ignore Field1 and how to set the Field2 value = 1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 13:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862120#M301741</guid>
      <dc:creator />
      <dc:date>2015-05-14T13:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing if with set</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862121#M301742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;Sum({&amp;lt;Field1=,Field2={"1"}&amp;gt;} Rangemin(WhStockBalance,ReservedQty)*UnitCostPrice)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 13:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862121#M301742</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-14T13:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing if with set</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862122#M301743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I missread your original question,&amp;nbsp; to follow with your subsequent question, yes, you can combine fields to be ignored with ones to be respected.&amp;nbsp; You do the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'courier new', courier;"&gt;Sum({&amp;lt;Field1=, Field2=, Field3={'Field to filter on'}&amp;gt;}if(WhStockBalance&amp;gt;=ReservedQty,ReservedQty,WhStockBalance)*UnitCostPrice)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 13:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-if-with-set/m-p/862122#M301743</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2015-05-14T13:22:49Z</dc:date>
    </item>
  </channel>
</rss>

