<?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 else then in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468244#M1156151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the help, but how ELSE use the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2013 14:43:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-26T14:43:33Z</dc:date>
    <item>
      <title>if else then</title>
      <link>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468242#M1156149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning friends, I am new in QlikView, but I need help, would put 2 expression in different conditions??&lt;/P&gt;&lt;P&gt;&amp;nbsp; model we use follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(Variable1&amp;gt;='0,25',(If(Tipo='4.01-ELETROFISIOLOGICOS',if(v1&amp;gt;'0',(sum(HM_CBHPM)*v1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40'),(sum(HM_CBHPM)*Variable1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40')))))&lt;/P&gt;&lt;P&gt;=if(Variable1&amp;gt;='0,25',(If(Tipo='4.02-ENDOSCOPICOS',if(v1&amp;gt;'0',(sum(HM_CBHPM)*v1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40'),(sum(HM_CBHPM)*Variable1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40')))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks ( Obrigado )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luís Rocha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 15:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468242#M1156149</guid>
      <dc:creator />
      <dc:date>2013-02-25T15:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: if else then</title>
      <link>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468243#M1156150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you need to put the second one with OR in the first ona, f.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(Variable1&amp;gt;='0,25',(If(&lt;STRONG&gt;Tipo='4.01-ELETROFISIOLOGICOS' OR Tipo='4.02-ENDOSCOPICOS'&lt;/STRONG&gt;,if(v1&amp;gt;'0',(sum(HM_CBHPM)*v1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40'),(sum(HM_CBHPM)*Variable1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40')))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not find any more differences between the two expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 13:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468243#M1156150</guid>
      <dc:creator />
      <dc:date>2013-02-26T13:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: if else then</title>
      <link>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468244#M1156151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the help, but how ELSE use the expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 14:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468244#M1156151</guid>
      <dc:creator />
      <dc:date>2013-02-26T14:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: if else then</title>
      <link>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468245#M1156152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The same one like before, because I only see the different in the second if-clause, where one time &lt;SPAN lang="EN" style="line-height: 115%; font-family: &amp;amp;quot;Calibri&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN; mso-fareast-language: DE; mso-bidi-language: AR-SA;"&gt;Tipo='4.01-ELETROFISIOLOGICOS'&lt;/SPAN&gt; and the other time &lt;SPAN lang="EN" style="line-height: 115%; font-family: &amp;amp;quot;Calibri&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN; mso-fareast-language: DE; mso-bidi-language: AR-SA;"&gt;Tipo='4.02-ENDOSCOPICOS'&lt;/SPAN&gt;. The other parts are equal. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I only add this differenz with an OR-clause in the second if-clause. I have rearrange the expression, so that you have a better look. The bold part is the "then"-part and the italic part is the "else"-part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 1: &lt;/P&gt;&lt;P&gt;=IF(Variable1&amp;gt;='0,25', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (If(Tipo='4.01-ELETROFISIOLOGICOS', &lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;if(v1&amp;gt;'0', &lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;(sum(HM_CBHPM)*v1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40'), &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;(sum(HM_CBHPM)*Variable1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40')&lt;/EM&gt;&lt;BR /&gt;)))) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression 2: &lt;/P&gt;&lt;P&gt;=if(Variable1&amp;gt;='0,25', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (If(Tipo='4.02-ENDOSCOPICOS', &lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;if(v1&amp;gt;'0', &lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;(sum(HM_CBHPM)*v1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40'),&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;(sum(HM_CBHPM)*Variable1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40')&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New expression&lt;/P&gt;&lt;P&gt;=IF(Variable1&amp;gt;='0,25',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (If(Tipo='4.01-ELETROFISIOLOGICOS' or Tipo='4.02-ENDOSCOPICOS', &lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;if(v1&amp;gt;'0', &lt;/P&gt;&lt;P style="text-indent: 35.4pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;(sum(HM_CBHPM)*v1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;(sum(HM_CBHPM)*Variable1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40')&lt;/EM&gt;&lt;BR /&gt;))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe, I have misunderstood you. Perhaps you have a small application, where the problem is obvious. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 15:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468245#M1156152</guid>
      <dc:creator />
      <dc:date>2013-02-26T15:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: if else then</title>
      <link>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468246#M1156153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, but I need to sequence in IF, ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(Variable1&amp;gt;='0,25',If(Tipo='4.01-ELETROFISIOLOGICOS',if(v1&amp;gt;'0',(sum(HM_CBHPM)*v1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40'),sum(HM_CBHPM)*Variable1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40')))&lt;/P&gt;&lt;P&gt;=IF(Variable1&amp;gt;='0,25',If(Tipo='4.02-ENDOSCOPICOS',if(v1&amp;gt;'0',(sum(HM_CBHPM)*v1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40'),sum(HM_CBHPM)*Variable1+sum(UCO_CBHPM)*',24'+sum(Filme_CBHPM)*'19,40')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression, works, only that when I change the v1 '4.01-ELETROFISIOLOGICOS 'changes also for type = ''4.02-ENDOSCOPICOS and it can not, the Variables V1 and V2 are independent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 16:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468246#M1156153</guid>
      <dc:creator />
      <dc:date>2013-02-26T16:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: if else then</title>
      <link>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468247#M1156154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can not see the second variables? Or is the second expression with Variable2 and v2?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 07:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-else-then/m-p/468247#M1156154</guid>
      <dc:creator />
      <dc:date>2013-02-27T07:32:20Z</dc:date>
    </item>
  </channel>
</rss>

