<?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 conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766124#M1039539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;formula would look like:&lt;/P&gt;&lt;P&gt;=if(sum(Amount)=0 or sum(total Amount)=0,'',(Amount)/sum(total Amount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2014 12:59:05 GMT</pubDate>
    <dc:creator>jpenuliar</dc:creator>
    <dc:date>2014-12-19T12:59:05Z</dc:date>
    <item>
      <title>If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766118#M1039533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 256px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;Name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Type&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Amount&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Gain%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;AA&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Address1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; b&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;BB&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;address2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;AA&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;address3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to write a condition for Gain % in a Straight Table (Expression).&lt;/P&gt;&lt;P&gt;pls find the excel condition given below. I need to write the below expression in Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b = IF ( OR(address1= "", sum(address1:address3)=0),"", (address1*100)/(address1:address3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me with this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 11:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766118#M1039533</guid>
      <dc:creator />
      <dc:date>2014-12-19T11:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766119#M1039534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please share what you want or the logic. Addess1 cannot be added to address2 as mentioned in the Excel expression as these are alpha numric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More over, The excel formula is not write it has errors!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 11:54:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766119#M1039534</guid>
      <dc:creator>alkesh_sharma</dc:creator>
      <dc:date>2014-12-19T11:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766120#M1039535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in simple mathematics, what is the formula of Gain% ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 11:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766120#M1039535</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2014-12-19T11:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766121#M1039536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="256"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;Name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Type&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Premium&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Gain%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;AA&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;B&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;BB&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;AA&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1500&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Totals&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this can help you people to understand my question.&amp;nbsp; Actually the column "Premium" may have empty cells also, So If the cell is empty or The total Premium is null, then it should return "Null" or 0.&amp;nbsp; Or it should display a values by calculating&amp;nbsp; Gain %.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 12:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766121#M1039536</guid>
      <dc:creator />
      <dc:date>2014-12-19T12:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766122#M1039537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So based on your listed columns ( Name,Type,Premium) how do you compute for Gain%?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 12:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766122#M1039537</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2014-12-19T12:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766123#M1039538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the sample attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 12:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766123#M1039538</guid>
      <dc:creator>pradnyat</dc:creator>
      <dc:date>2014-12-19T12:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766124#M1039539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;formula would look like:&lt;/P&gt;&lt;P&gt;=if(sum(Amount)=0 or sum(total Amount)=0,'',(Amount)/sum(total Amount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 12:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766124#M1039539</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2014-12-19T12:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766125#M1039540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly Jonathan. You got it Ryt. The interpretation is ryt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can I write it in Qlikview. I dont have a column or a value for Total Amount.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 13:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766125#M1039540</guid>
      <dc:creator />
      <dc:date>2014-12-19T13:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766126#M1039541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Pradnya, I couldnt open your file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 13:05:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766126#M1039541</guid>
      <dc:creator />
      <dc:date>2014-12-19T13:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766127#M1039542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use below expression for Gain %:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(sum(Amount)=0 or sum(total Amount)=0,'',(Amount)/sum(total Amount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 13:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766127#M1039542</guid>
      <dc:creator>pradnyat</dc:creator>
      <dc:date>2014-12-19T13:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766128#M1039543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont have a column called Total amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to sum all the amounts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 13:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766128#M1039543</guid>
      <dc:creator />
      <dc:date>2014-12-19T13:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766129#M1039544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Total in this case is a Reserved word atatched to Sum() function. without it, the resulting values are per rows&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 13:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766129#M1039544</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2014-12-19T13:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766130#M1039545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;from Qlikview F1( help)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the word &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; occurs before an &lt;SPAN class="Italic"&gt;expression&lt;/SPAN&gt;, the calculation will be made over all possible values given the current selections, but disregarding the chart dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 13:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766130#M1039545</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2014-12-19T13:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: If conditions</title>
      <link>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766131#M1039546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you try it now on qlikview, notice that "Total" is in blue color which means it is a reserved word&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 13:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-conditions/m-p/766131#M1039546</guid>
      <dc:creator>jpenuliar</dc:creator>
      <dc:date>2014-12-19T13:18:18Z</dc:date>
    </item>
  </channel>
</rss>

