<?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: Create If-else Calculation on Text Object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383362#M421386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;CATEGORY={ADMIN}&amp;gt;} HOURS)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the condition didnt satisfy it will automatically give 0, so there is no need of else condition here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Aug 2017 05:06:39 GMT</pubDate>
    <dc:creator>Muthu</dc:creator>
    <dc:date>2017-08-11T05:06:39Z</dc:date>
    <item>
      <title>Create If-else Calculation on Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383358#M421382</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;I have this Text Object that contains formula of IF-ELSE and aggregating a certain fields.&lt;/P&gt;&lt;P&gt;I can't see any result, just a plain dash(-) on Text Object. Can you help me out here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 02:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383358#M421382</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-08-11T02:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create If-else Calculation on Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383359#M421383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;Can you share your expression ?&lt;/P&gt;&lt;P&gt;Easier to advise .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 03:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383359#M421383</guid>
      <dc:creator>prachisangewar</dc:creator>
      <dc:date>2017-08-11T03:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create If-else Calculation on Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383360#M421384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it is:&lt;/P&gt;&lt;P&gt;=IF(Category = 'ADMIN', NUM(SUM(Hours))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 03:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383360#M421384</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-08-11T03:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create If-else Calculation on Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383361#M421385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Category = 'ADMIN',NUM(SUM(Hours),'#,##0'),0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 03:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383361#M421385</guid>
      <dc:creator>prachisangewar</dc:creator>
      <dc:date>2017-08-11T03:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create If-else Calculation on Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383362#M421386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;CATEGORY={ADMIN}&amp;gt;} HOURS)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the condition didnt satisfy it will automatically give 0, so there is no need of else condition here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 05:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383362#M421386</guid>
      <dc:creator>Muthu</dc:creator>
      <dc:date>2017-08-11T05:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create If-else Calculation on Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383363#M421387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px;"&gt;If (substringcount (GetFieldSelections (Category, ':'))&amp;gt;0,&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 28.6924px;"&gt;NUM(SUM(Hours),0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 05:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383363#M421387</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-08-11T05:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create If-else Calculation on Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383364#M421388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Category={'ADMIN'}&amp;gt;}Hours)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 06:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383364#M421388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-11T06:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create If-else Calculation on Text Object</title>
      <link>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383365#M421389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&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; Rewrite it as&lt;/P&gt;&lt;P&gt;Sum(if(Category = 'ADMIN',Hours))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum the if, don't if the sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muthu has already given you an expression that will work and if you're comfortable with set analysis expression use that one. If you have an expression containing an 'if' using a set analysis expression instead will be quicker and when you're used to the syntax will be easier to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 07:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-If-else-Calculation-on-Text-Object/m-p/1383365#M421389</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2017-08-11T07:52:28Z</dc:date>
    </item>
  </channel>
</rss>

