<?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 Statement with multiple conditions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737089#M56377</link>
    <description>&lt;P&gt;You need to write if condition for highlighted part.&lt;/P&gt;&lt;P&gt;if(mtrc_videoviews &amp;lt; 300 and brandID = 1,&lt;BR /&gt;mtrc_impressions * 0.00936, &lt;STRONG&gt;mtrc_impressions * 0.00806&lt;/STRONG&gt;,&lt;BR /&gt;if(mtrc_videoviews &amp;lt; 300 and brandID = 2, mtrc_impressions * 0.00996, mtrc_impressions * 0.00762))&lt;/P&gt;</description>
    <pubDate>Wed, 19 Aug 2020 13:47:39 GMT</pubDate>
    <dc:creator>ms_12</dc:creator>
    <dc:date>2020-08-19T13:47:39Z</dc:date>
    <item>
      <title>Nested IF Statement with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737076#M56374</link>
      <description>&lt;P&gt;I am attempting to create a nested if statement with several conditions. Below is how I have the expression formatted currently, however I am getting an error or 'IF takes 2-3 parameters,' which I believed I had&lt;/P&gt;&lt;P&gt;=if(mtrc_videoviews &amp;lt; 300 and brandID = 1, mtrc_impressions * 0.00936, mtrc_impressions * 0.00806, if(mtrc_videoviews &amp;lt; 300 and brandID = 2, mtrc_impressions * 0.00996, mtrc_impressions * 0.00762))&lt;/P&gt;&lt;P&gt;How can I correct&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 13:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737076#M56374</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2020-08-19T13:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF Statement with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737089#M56377</link>
      <description>&lt;P&gt;You need to write if condition for highlighted part.&lt;/P&gt;&lt;P&gt;if(mtrc_videoviews &amp;lt; 300 and brandID = 1,&lt;BR /&gt;mtrc_impressions * 0.00936, &lt;STRONG&gt;mtrc_impressions * 0.00806&lt;/STRONG&gt;,&lt;BR /&gt;if(mtrc_videoviews &amp;lt; 300 and brandID = 2, mtrc_impressions * 0.00996, mtrc_impressions * 0.00762))&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 13:47:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737089#M56377</guid>
      <dc:creator>ms_12</dc:creator>
      <dc:date>2020-08-19T13:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF Statement with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737123#M56381</link>
      <description>&lt;P&gt;Is this what you are expecting?&lt;/P&gt;&lt;P&gt;=if(mtrc_videoviews &amp;lt; 300 and brandID = 1, mtrc_impressions * 0.00936,&lt;BR /&gt;if(mtrc_videoviews &amp;lt; 300 and brandID = 2, mtrc_impressions * 0.00996,&lt;BR /&gt;if(mtrc_videoviews &amp;gt;= 300 and brandID = 1, mtrc_impressions * 0.00806,&lt;BR /&gt;if(mtrc_videoviews &amp;gt;= 300 and brandID = 2, mtrc_impressions * 0.00762))))&lt;/P&gt;&lt;P&gt;So BrandID = 1 has two logic's based on video views similarly for BrandID = 2.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 14:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737123#M56381</guid>
      <dc:creator>rrsrini2907</dc:creator>
      <dc:date>2020-08-19T14:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF Statement with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737124#M56382</link>
      <description>&lt;P&gt;Hi Dear Evansabres&lt;/P&gt;&lt;P&gt;The highlighted part on Kush_qlik post is the wrong part of your script, you can try with the following sentence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(mtrc_videoviews &amp;lt; 300 and brandID = 1,&lt;BR /&gt;mtrc_impressions * 0.00936,&lt;BR /&gt;if(mtrc_videoviews &amp;lt; 300 and brandID = 2,&lt;BR /&gt;mtrc_impressions * 0.00996,&lt;BR /&gt;mtrc_impressions * 0.00762))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 14:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737124#M56382</guid>
      <dc:creator>marcos_herrera</dc:creator>
      <dc:date>2020-08-19T14:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF Statement with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737177#M56388</link>
      <description>&lt;P&gt;The format of this expression works, however I need to incorporate the highlighted portion of what I have below:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=if(mtrc_videoviews &amp;lt; 300 and brandID = 1, mtrc_impressions * 0.00936, &lt;EM&gt;&lt;STRONG&gt;mtrc_impressions * 0.00806,&lt;/STRONG&gt;&lt;/EM&gt; if(mtrc_videoviews &amp;lt; 300 and brandID = 2, mtrc_impressions * 0.00996, mtrc_impressions * 0.00762))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 17:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737177#M56388</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2020-08-19T17:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF Statement with multiple conditions</title>
      <link>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737211#M56391</link>
      <description>&lt;P&gt;You cannot write two else part in if statement. so structure your if something like below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(mtrc_videoviews &amp;lt; 300 and brandID = 1, mtrc_impressions * 0.00936,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;if(&amp;lt;condition&amp;gt; , mtrc_impressions * 0.00806,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;if(mtrc_videoviews &amp;lt; 300 and brandID = 2, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;mtrc_impressions * 0.00996, mtrc_impressions * 0.00762)))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 20:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Nested-IF-Statement-with-multiple-conditions/m-p/1737211#M56391</guid>
      <dc:creator>ms_12</dc:creator>
      <dc:date>2020-08-19T20:58:22Z</dc:date>
    </item>
  </channel>
</rss>

