<?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 statements in a Text Object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-IF-statements-in-a-Text-Object/m-p/1273259#M461390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, agreed.&amp;nbsp; Could you show me how to nest these IF statements?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2017 20:54:32 GMT</pubDate>
    <dc:creator>cliff_clayman</dc:creator>
    <dc:date>2017-01-18T20:54:32Z</dc:date>
    <item>
      <title>Nested IF statements in a Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-statements-in-a-Text-Object/m-p/1273257#M461388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Text Object with an expression in the Text that produces a percentage based on user selections.&amp;nbsp; I have two selections that I need to test for and each test will use a different set of variables to calculate that percentage.&amp;nbsp; How can I write the expression to best return the result I am looking for?&amp;nbsp; Here are the IF statements listed out on their own that I am looking to combine into one large expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If((vFlag) = 'Yes' and Division = 'A', vProjAFYSavings, vFYASavings)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If((vFlag) = 'Yes' and Division &amp;lt;&amp;gt; 'A', vProjFYSavings, vFYSavings)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If((vFlag) = 'No' and Division = 'A', vFYASavings, vFYASavings)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If((vFlag) = 'No' and Division &amp;lt;&amp;gt; 'A', vProjFYSavings, vFYSavings)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-statements-in-a-Text-Object/m-p/1273257#M461388</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2017-01-18T20:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF statements in a Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-statements-in-a-Text-Object/m-p/1273258#M461389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if these can be combined at all. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, If Division &amp;lt;&amp;gt; 'A' and vFlag = 'No', the second expression will return vFYSavings, while the fourth vPrjFYSavings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, you can use nested if() statements like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If( ConditionA, Then1, If( ConditionB, Then2, If(Condition3, Then 3, Else1)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(ConditionA, If(ConditionB, Then1, Else1), Else2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-statements-in-a-Text-Object/m-p/1273258#M461389</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-18T20:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF statements in a Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-statements-in-a-Text-Object/m-p/1273259#M461390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, agreed.&amp;nbsp; Could you show me how to nest these IF statements?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-statements-in-a-Text-Object/m-p/1273259#M461390</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2017-01-18T20:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF statements in a Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-statements-in-a-Text-Object/m-p/1273260#M461391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming Flag can either be Yes or No:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Flag = 'Yes', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Division ='A',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vProjAFYSavings&lt;/SPAN&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vProjFYSavings&lt;/SPAN&gt;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Division = 'A', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vFYASavings&lt;/SPAN&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vProjFYSavings&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 20:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-statements-in-a-Text-Object/m-p/1273260#M461391</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-01-18T20:59:17Z</dc:date>
    </item>
  </channel>
</rss>

