<?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 then else statement systax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708740#M724009</link>
    <description>&lt;P&gt;also&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if(Grams &amp;lt;&amp;gt; 0, sum(Pricetotal/Grams)),sum(Pricetotal/Pieces)) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if not can you share a sample data and the expected output ?&lt;/P&gt;</description>
    <pubDate>Sat, 06 Jun 2020 12:27:45 GMT</pubDate>
    <dc:creator>Taoufiq_Zarra</dc:creator>
    <dc:date>2020-06-06T12:27:45Z</dc:date>
    <item>
      <title>if then else statement systax</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708733#M724004</link>
      <description>&lt;P&gt;need to display in grid based on one the 2 valid&lt;/P&gt;&lt;P&gt;if (Pieces &amp;lt;&amp;gt; 0 , Pricetotal/Pieces) else (Grams &amp;lt;&amp;gt; 1&amp;nbsp; then Pricetotal/Grams)&lt;/P&gt;&lt;P&gt;Field names are ok formule gives error,&amp;nbsp; so what do I&amp;nbsp; wrong in syntax&amp;nbsp; ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708733#M724004</guid>
      <dc:creator>JACKNIEKERK</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: if then else statement systax</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708737#M724005</link>
      <description>&lt;P&gt;May be&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=if(Pieces &amp;lt;&amp;gt;0,Pricetotal/Pieces,if(Grams &amp;lt;&amp;gt;1,Pricetotal/Grams))&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 06 Jun 2020 11:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708737#M724005</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-06-06T11:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: if then else statement systax</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708739#M724007</link>
      <description>&lt;P&gt;Ok what I realize is that grams goes first allways,&amp;nbsp; due sometimes in table it tells how many items in the total&amp;nbsp; weight&lt;/P&gt;&lt;P&gt;this runs ok&amp;nbsp;&amp;nbsp;if(Grams &amp;lt;&amp;gt; 0, sum(Pricetotal/Grams))&lt;/P&gt;&lt;P&gt;But in case NO grams only pieces , how do i that behind&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in VB&amp;nbsp; I could work with something like&lt;/P&gt;&lt;P&gt;if(Grams &amp;lt;&amp;gt; 0, sum(Pricetotal/Grams)) else&amp;nbsp;&amp;nbsp;sum(Pricetotal/Pieces))&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 12:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708739#M724007</guid>
      <dc:creator>JACKNIEKERK</dc:creator>
      <dc:date>2020-06-06T12:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: if then else statement systax</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708740#M724009</link>
      <description>&lt;P&gt;also&lt;/P&gt;&lt;LI-CODE lang="python"&gt;if(Grams &amp;lt;&amp;gt; 0, sum(Pricetotal/Grams)),sum(Pricetotal/Pieces)) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if not can you share a sample data and the expected output ?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 12:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708740#M724009</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-06-06T12:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: if then else statement systax</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708750#M724011</link>
      <description>&lt;P&gt;Hello , its simple i think ,&lt;/P&gt;&lt;P&gt;Grams is first choice, due to it could happen field Grams contains value And Pieces contains value&lt;BR /&gt;if Grams =0 then Pieces are counting&lt;/P&gt;&lt;P&gt;I my visual programs i have this&lt;BR /&gt;just do not know ,&amp;nbsp; and trying to find the syntax in Qlikview&lt;/P&gt;&lt;P&gt;If Grams &amp;lt;&amp;gt; 0 Then&lt;BR /&gt;&amp;nbsp; Sum = Pricetotal / Grams&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Else&lt;BR /&gt;&amp;nbsp;Sum = Pricetotal / Pieces&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 19:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708750#M724011</guid>
      <dc:creator>JACKNIEKERK</dc:creator>
      <dc:date>2020-06-06T19:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: if then else statement systax</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708753#M724013</link>
      <description>&lt;P&gt;Hello&amp;nbsp; it works ok&lt;/P&gt;&lt;P&gt;just learned that i must be carefull&amp;nbsp; with capitals , will not generate error, just will give nothing&amp;nbsp;&lt;/P&gt;&lt;P&gt;This Grams&amp;nbsp; should be&amp;nbsp; grams&amp;nbsp; &amp;nbsp; then it works&lt;/P&gt;&lt;P&gt;thanks for helping out&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Grams &amp;lt;&amp;gt; 0, sum(Pricetotal/Grams)),sum(Pricetotal/Pieces))&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 20:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708753#M724013</guid>
      <dc:creator>JACKNIEKERK</dc:creator>
      <dc:date>2020-06-06T20:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: if then else statement systax</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708763#M724014</link>
      <description>&lt;P&gt;You can also add Null check to this, if you want.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(Grams &amp;lt;&amp;gt; 0 And Not IsNull(Grams), sum(Pricetotal/Grams)),sum(Pricetotal/Pieces))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 21:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1708763#M724014</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-06-06T21:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: if then else statement systax</title>
      <link>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1718581#M724016</link>
      <description>&lt;P&gt;thanks for tip&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 10:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-then-else-statement-systax/m-p/1718581#M724016</guid>
      <dc:creator>JACKNIEKERK</dc:creator>
      <dc:date>2020-06-14T10:21:53Z</dc:date>
    </item>
  </channel>
</rss>

