<?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 condition not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-else-condition-not-working/m-p/1641822#M731269</link>
    <description>&lt;P&gt;Thanks Sunny T!&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2019 17:01:50 GMT</pubDate>
    <dc:creator>gfisch13</dc:creator>
    <dc:date>2019-10-31T17:01:50Z</dc:date>
    <item>
      <title>If..else condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition-not-working/m-p/1641805#M731267</link>
      <description>&lt;P&gt;Hi all - I've tried to use the following IF/Else expression but I'm getting an error.&amp;nbsp; What am I doing wrong?&lt;/P&gt;&lt;P&gt;if([CC_MCC_Desc] = 'Grocery_Stores_and_Supermarkets'), Sum([CC_Item_Cost]), Sum([CC_Tran_Amt])&lt;/P&gt;&lt;P&gt;If the condtion is true I'm taking a Sum of a field, if the condution is false I'm taking a Sum of a different field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any comments.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition-not-working/m-p/1641805#M731267</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2024-11-16T02:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: If..else condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition-not-working/m-p/1641809#M731268</link>
      <description>&lt;P&gt;You have an extra parenthesis and a missing one at the end&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if([CC_MCC_Desc] = 'Grocery_Stores_and_Supermarkets'&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;, Sum([CC_Item_Cost]), Sum([CC_Tran_Amt])&lt;FONT color="#00FF00"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If([CC_MCC_Desc] = 'Grocery_Stores_and_Supermarkets',
  Sum([CC_Item_Cost]),
  Sum([CC_Tran_Amt])
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 16:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition-not-working/m-p/1641809#M731268</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-31T16:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: If..else condition not working</title>
      <link>https://community.qlik.com/t5/QlikView/If-else-condition-not-working/m-p/1641822#M731269</link>
      <description>&lt;P&gt;Thanks Sunny T!&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 17:01:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-else-condition-not-working/m-p/1641822#M731269</guid>
      <dc:creator>gfisch13</dc:creator>
      <dc:date>2019-10-31T17:01:50Z</dc:date>
    </item>
  </channel>
</rss>

