<?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 IF statement and set analysis problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221174#M588084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a pivot table in which i have used the following if statement for an expression;&lt;/P&gt;&lt;P&gt;If(Left(GENERAL_LEDGER.GL_CODE,1)&amp;lt;&amp;gt;1 and Left(GENERAL_LEDGER.GL_CODE,2)&amp;lt;&amp;gt;21 and&lt;BR /&gt;Left(GENERAL_LEDGER.GL_CODE,2)&amp;lt;&amp;gt;28 and Left(GENERAL_LEDGER.GL_CODE,3)&amp;lt;&amp;gt;3 and&lt;BR /&gt;Left(GENERAL_LEDGER.GL_CODE,4)&amp;lt;&amp;gt;4 and Left(GENERAL_LEDGER.GL_CODE,5)&amp;lt;&amp;gt;5 and&lt;BR /&gt;Left(GENERAL_LEDGER.GL_CODE,6)&amp;lt;&amp;gt;6 and Left(GENERAL_LEDGER.GL_CODE,7)&amp;lt;&amp;gt;7 and&lt;BR /&gt;Left(GENERAL_LEDGER.GL_CODE,8)&amp;lt;&amp;gt;8 and Left(GENERAL_LEDGER.GL_CODE,9)&amp;lt;&amp;gt;9,&lt;BR /&gt;Sum({&amp;lt;TRANSACTION_HISTORY.VALUE_DATE= {"&amp;lt;$(=CALENDAR.VAR_DATE_ONE)"}&amp;gt;} TRANSACTION_HISTORY.CV_AMOUNT))&lt;/P&gt;&lt;P&gt;This expression is prvoing to be too big and slows down the .qvw operation.&lt;/P&gt;&lt;P&gt;I wanted to know if there is some way through which i could shorten it or maybe im doing it wrong and there is another way of getting the same result.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Dec 2010 06:27:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-13T06:27:35Z</dc:date>
    <item>
      <title>IF statement and set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221174#M588084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a pivot table in which i have used the following if statement for an expression;&lt;/P&gt;&lt;P&gt;If(Left(GENERAL_LEDGER.GL_CODE,1)&amp;lt;&amp;gt;1 and Left(GENERAL_LEDGER.GL_CODE,2)&amp;lt;&amp;gt;21 and&lt;BR /&gt;Left(GENERAL_LEDGER.GL_CODE,2)&amp;lt;&amp;gt;28 and Left(GENERAL_LEDGER.GL_CODE,3)&amp;lt;&amp;gt;3 and&lt;BR /&gt;Left(GENERAL_LEDGER.GL_CODE,4)&amp;lt;&amp;gt;4 and Left(GENERAL_LEDGER.GL_CODE,5)&amp;lt;&amp;gt;5 and&lt;BR /&gt;Left(GENERAL_LEDGER.GL_CODE,6)&amp;lt;&amp;gt;6 and Left(GENERAL_LEDGER.GL_CODE,7)&amp;lt;&amp;gt;7 and&lt;BR /&gt;Left(GENERAL_LEDGER.GL_CODE,8)&amp;lt;&amp;gt;8 and Left(GENERAL_LEDGER.GL_CODE,9)&amp;lt;&amp;gt;9,&lt;BR /&gt;Sum({&amp;lt;TRANSACTION_HISTORY.VALUE_DATE= {"&amp;lt;$(=CALENDAR.VAR_DATE_ONE)"}&amp;gt;} TRANSACTION_HISTORY.CV_AMOUNT))&lt;/P&gt;&lt;P&gt;This expression is prvoing to be too big and slows down the .qvw operation.&lt;/P&gt;&lt;P&gt;I wanted to know if there is some way through which i could shorten it or maybe im doing it wrong and there is another way of getting the same result.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 06:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221174#M588084</guid>
      <dc:creator />
      <dc:date>2010-12-13T06:27:35Z</dc:date>
    </item>
    <item>
      <title>IF statement and set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221175#M588085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put values 1, 3 -&amp;gt; 9, 21, 28 into an inline table and a flag =1 . Than the set expression (of IF as in your original code) has to check only one flag&lt;/P&gt;&lt;P&gt;-Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 09:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221175#M588085</guid>
      <dc:creator />
      <dc:date>2010-12-13T09:04:01Z</dc:date>
    </item>
    <item>
      <title>IF statement and set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221176#M588086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alexandru. I pull data from a local server, that is connected to qlikview so it is not possible for me to perfrom any scripting or use macros, either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 12:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221176#M588086</guid>
      <dc:creator />
      <dc:date>2010-12-13T12:55:14Z</dc:date>
    </item>
    <item>
      <title>IF statement and set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221177#M588087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;msadrikhcb.&lt;/P&gt;&lt;P&gt;Your "Left"s functions could be written into only two:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;NOT Match( Left(GENERAL_LEDGER.GL_CODE,1), 1, 3, 4, 5, 6, 7, 8, 9)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;2.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;NOT Match ( Left(GENERAL_LEDGER.GL_CODE,2), 21, 28)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Your final function could then look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum( {&amp;lt; TRANSACTION_HISTORY.VALUE_DATE = {"&amp;lt;$(=CALENDAR.VAR_DATE_ONE)"}&lt;BR /&gt; , GENERAL_LEDGER.GL_CODE -= {"= NOT Match( Left(GENERAL_LEDGER.GL_CODE,1), 1, 3, 4, 5, 6, 7, 8, 9)&lt;BR /&gt; and NOT Match ( Left(GENERAL_LEDGER.GL_CODE,2), 21, 28) "}&lt;BR /&gt; &amp;gt;}&lt;BR /&gt; TRANSACTION_HISTORY.CV_AMOUNT&lt;BR /&gt; )&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 18:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221177#M588087</guid>
      <dc:creator>mongolu</dc:creator>
      <dc:date>2010-12-13T18:43:00Z</dc:date>
    </item>
    <item>
      <title>IF statement and set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221178#M588088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry. Take out the two "NOT".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 04:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221178#M588088</guid>
      <dc:creator>mongolu</dc:creator>
      <dc:date>2010-12-14T04:53:53Z</dc:date>
    </item>
    <item>
      <title>IF statement and set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221179#M588089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and replace the "AND" between the "MATCH" with "OR"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 04:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221179#M588089</guid>
      <dc:creator>mongolu</dc:creator>
      <dc:date>2010-12-14T04:58:47Z</dc:date>
    </item>
    <item>
      <title>IF statement and set analysis problem</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221180#M588090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mihai, that did it, i only needed to change the AND's with OR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 09:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-and-set-analysis-problem/m-p/221180#M588090</guid>
      <dc:creator />
      <dc:date>2010-12-29T09:20:05Z</dc:date>
    </item>
  </channel>
</rss>

