<?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: nested if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/nested-if/m-p/1965188#M1220322</link>
    <description>&lt;P&gt;this is how the formula works for me but only for one item and to include more than one how to write the code&lt;/P&gt;
&lt;P&gt;=if([Item No_] =4236 , [Unit Price],Sum({&amp;lt; [Item No_] = {"=[Item No_] = [Item No_]"} &amp;gt;} [Unit Price]*1.2))&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2022 12:05:40 GMT</pubDate>
    <dc:creator>dzhanito</dc:creator>
    <dc:date>2022-08-05T12:05:40Z</dc:date>
    <item>
      <title>nested if</title>
      <link>https://community.qlik.com/t5/QlikView/nested-if/m-p/1965111#M1220317</link>
      <description>&lt;P&gt;This code must not apply to certain items so they can pick them up without *1.2 Sum({&amp;lt; [Item No_] = {"=[Item No_] = [Item No_]"} &amp;gt;} [Unit Price]*1.2)&amp;nbsp; here are the codes from Item No. which should normally be taken without *1.2&lt;/P&gt;
&lt;P&gt;12974,14584,14573,4236,4237,4238,4241,4242,4243,4244,4247,7430,8114,12126,16009,16010,15284,4249,4256,4258,12973,14739,7365,4259,8970,10608,12338,12339,12373,17015,12545,13484,16076,16078,16123,16788&lt;/P&gt;
&lt;P&gt;like is script error:=if(Sum({&amp;lt; [Item No_] = {"=12974,14584,14573,4236,4237,4238,4241,4242,4243,4244,4247,7430,8114,12126,16009,16010,15284,4249,4256,4258,12973,14739,7365,4259,8970,10608,12338,12339,12373,17015,12545,13484,16076,16078,16123,16788 =[Item No_]"} &amp;gt;} [Unit Price]),Sum({&amp;lt; [Item No_] = {"=[Item No_] = [Item No_]"} &amp;gt;} [Unit Price]*1.2))&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 11:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-if/m-p/1965111#M1220317</guid>
      <dc:creator>dzhanito</dc:creator>
      <dc:date>2022-08-05T11:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: nested if</title>
      <link>https://community.qlik.com/t5/QlikView/nested-if/m-p/1965188#M1220322</link>
      <description>&lt;P&gt;this is how the formula works for me but only for one item and to include more than one how to write the code&lt;/P&gt;
&lt;P&gt;=if([Item No_] =4236 , [Unit Price],Sum({&amp;lt; [Item No_] = {"=[Item No_] = [Item No_]"} &amp;gt;} [Unit Price]*1.2))&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 12:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-if/m-p/1965188#M1220322</guid>
      <dc:creator>dzhanito</dc:creator>
      <dc:date>2022-08-05T12:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: nested if</title>
      <link>https://community.qlik.com/t5/QlikView/nested-if/m-p/1965269#M1220326</link>
      <description>&lt;P&gt;I'm not sure if I understand your aim right but I assume you want in the end something like this:&lt;/P&gt;
&lt;P&gt;rangesum(sum({&amp;lt; Item = {1, 2, 3}&amp;gt;} Price * 1.2),&amp;nbsp;sum({&amp;lt; Item &lt;STRONG&gt;-=&lt;/STRONG&gt; {1, 2, 3}&amp;gt;} Price))&lt;/P&gt;
&lt;P&gt;which will sum the price from certain items * factor and all others without the factor and both parts are parameters within a rangesum().&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 14:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-if/m-p/1965269#M1220326</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-08-05T14:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: nested if</title>
      <link>https://community.qlik.com/t5/QlikView/nested-if/m-p/1965676#M1220343</link>
      <description>&lt;P&gt;works thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 06:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-if/m-p/1965676#M1220343</guid>
      <dc:creator>dzhanito</dc:creator>
      <dc:date>2022-08-08T06:51:52Z</dc:date>
    </item>
  </channel>
</rss>

