<?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 Complex IF - SUM - IF scenario - Is it possible? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complex-IF-SUM-IF-scenario-Is-it-possible/m-p/277125#M103326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a requirement to create an "expression dimension" with a similar criteria shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( sum( if(criteria1, AMOUNT,0)) &amp;lt;= VAL ,'TEXT 1' if(sum( if(criteria2, AMOUNT,0)) &amp;gt; VAL, 'TEXT 2','OTHER'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&lt;/P&gt;&lt;P&gt; sum( if (Order_YR = 2010 and PRODUCT = DVD , SALES_AMT,0))&amp;lt;= 100 , 'DVD_100_SALES',&lt;/P&gt;&lt;P&gt; if (sum( if (Order_YR = 2010 and PRODUCT = DVD ,SALES_AMT,0)) &amp;gt; 100 , 'DVD_100+_SALES','Other')&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing this and gets the "//Error in calculateddimension" error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea whether this kind of statement is supported ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aji Paul. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2011 18:16:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-26T18:16:55Z</dc:date>
    <item>
      <title>Complex IF - SUM - IF scenario - Is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-IF-SUM-IF-scenario-Is-it-possible/m-p/277125#M103326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a requirement to create an "expression dimension" with a similar criteria shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( sum( if(criteria1, AMOUNT,0)) &amp;lt;= VAL ,'TEXT 1' if(sum( if(criteria2, AMOUNT,0)) &amp;gt; VAL, 'TEXT 2','OTHER'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&lt;/P&gt;&lt;P&gt; sum( if (Order_YR = 2010 and PRODUCT = DVD , SALES_AMT,0))&amp;lt;= 100 , 'DVD_100_SALES',&lt;/P&gt;&lt;P&gt; if (sum( if (Order_YR = 2010 and PRODUCT = DVD ,SALES_AMT,0)) &amp;gt; 100 , 'DVD_100+_SALES','Other')&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried doing this and gets the "//Error in calculateddimension" error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea whether this kind of statement is supported ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aji Paul. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 18:16:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-IF-SUM-IF-scenario-Is-it-possible/m-p/277125#M103326</guid>
      <dc:creator />
      <dc:date>2011-10-26T18:16:55Z</dc:date>
    </item>
    <item>
      <title>Complex IF - SUM - IF scenario - Is it possible?</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-IF-SUM-IF-scenario-Is-it-possible/m-p/277126#M103327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It wont be supported as the dimension is not defined in your expression. I recommened you use aggr() function and define dimensionality for evaluation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need not have the if claused in sum, replace them with set analysis for faster computation:&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;sum( if (Order_YR = 2010 and PRODUCT = DVD , SALES_AMT,0)) can be written as&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Order_YR = {2010} and PRODUCT = {'DVD'}&amp;gt;} SALES_AMT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 18:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-IF-SUM-IF-scenario-Is-it-possible/m-p/277126#M103327</guid>
      <dc:creator />
      <dc:date>2011-10-26T18:26:46Z</dc:date>
    </item>
  </channel>
</rss>

