<?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: condition if in dimention in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/condition-if-in-dimention/m-p/450314#M168006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry... i take off cirilic simbol:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( if(aggr(sum({&amp;lt;bg_t={'*'}&amp;gt;}Quantity),AffiliateID,Holding,mes,mes_a )&amp;gt;0 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and mes = (if(right(mes_a,2)-1&amp;gt;0, mes_a -1, left(mes_a,4)-1&amp;amp;12))&lt;/P&gt;&lt;P&gt;,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( if(aggr(sum({&amp;lt;bg_t={'*'},&amp;nbsp; mes = (if(right(mes_a,2)-1&amp;gt;0, mes_a -1, left(mes_a,4)-1&amp;amp;12)) &amp;gt;}Quantity),AffiliateID,Holding,mes,mes_a )&amp;gt;0 &lt;/P&gt;&lt;P&gt;,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 07:53:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-19T07:53:23Z</dc:date>
    <item>
      <title>condition if in dimention</title>
      <link>https://community.qlik.com/t5/QlikView/condition-if-in-dimention/m-p/450313#M168005</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 expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( if(aggr(sum({&amp;lt;bg_t={'*'}, bg_t-={'б\г'} &amp;gt;}Quantity),AffiliateID,Holding,mes,mes_a )&amp;gt;0 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and mes = (if(right(mes_a,2)-1&amp;gt;0, mes_a -1, left(mes_a,4)-1&amp;amp;12))&lt;/P&gt;&lt;P&gt;,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it's working good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need move condition after "and" into dimention. Unfortunatly construction like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( if(aggr(sum({&amp;lt;bg_t={'*'}, bg_t-={'б\г'}, mes = (if(right(mes_a,2)-1&amp;gt;0, mes_a -1, left(mes_a,4)-1&amp;amp;12)) &amp;gt;}Quantity),AffiliateID,Holding,mes,mes_a )&amp;gt;0 &lt;/P&gt;&lt;P&gt;,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i missed? Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 07:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-if-in-dimention/m-p/450313#M168005</guid>
      <dc:creator />
      <dc:date>2012-12-19T07:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: condition if in dimention</title>
      <link>https://community.qlik.com/t5/QlikView/condition-if-in-dimention/m-p/450314#M168006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry... i take off cirilic simbol:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( if(aggr(sum({&amp;lt;bg_t={'*'}&amp;gt;}Quantity),AffiliateID,Holding,mes,mes_a )&amp;gt;0 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and mes = (if(right(mes_a,2)-1&amp;gt;0, mes_a -1, left(mes_a,4)-1&amp;amp;12))&lt;/P&gt;&lt;P&gt;,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( if(aggr(sum({&amp;lt;bg_t={'*'},&amp;nbsp; mes = (if(right(mes_a,2)-1&amp;gt;0, mes_a -1, left(mes_a,4)-1&amp;amp;12)) &amp;gt;}Quantity),AffiliateID,Holding,mes,mes_a )&amp;gt;0 &lt;/P&gt;&lt;P&gt;,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 07:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-if-in-dimention/m-p/450314#M168006</guid>
      <dc:creator />
      <dc:date>2012-12-19T07:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: condition if in dimention</title>
      <link>https://community.qlik.com/t5/QlikView/condition-if-in-dimention/m-p/450315#M168007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like your if condition for mes is calculated per row, not for the entire chart at once. If that's true then you can't put the condition in the set analysis expression. But the syntax isn't correct too. You could try using a variable, e.g. &lt;EM&gt;v_Mes = if(right(mes_a,2)-1&amp;gt;0, mes_a -1, left(mes_a,4)-1&amp;amp;12)&lt;/EM&gt; and use the variable in the set analysis expression &lt;EM&gt;sum({&amp;lt;bg_t={'*'},&amp;nbsp; mes = {'$(v_Mes)'}&amp;nbsp; &amp;gt;}Quantity)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 08:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-if-in-dimention/m-p/450315#M168007</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-19T08:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: condition if in dimention</title>
      <link>https://community.qlik.com/t5/QlikView/condition-if-in-dimention/m-p/450316#M168008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Gysbert! Thank you for help. &lt;/P&gt;&lt;P&gt;"It looks like your if condition for mes is calculated per row" - yes it is. This formila:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( if(aggr(sum({&amp;lt;bg_t={'*'}&amp;gt;}Quantity),AffiliateID,Holding,mes,mes_a )&amp;gt;0 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and mes = (if(right(mes_a,2)-1&amp;gt;0, mes_a -1, left(mes_a,4)-1&amp;amp;12))&lt;/P&gt;&lt;P&gt;,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give me sum of Quantity for previous month. mes_a and mes i take from 2 different tables without any joins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 490px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;city&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="98"&gt;mes_a&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="98"&gt;mes_a-1&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="98"&gt;active month&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="98"&gt;previous month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Moscow&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;201201&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;201112&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;313&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;477&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Moscow&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;201202&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;201201&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;328&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;313&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none;"&gt;Moscow&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;201203&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;201202&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;363&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none;"&gt;328&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now i need count such condition:&lt;/P&gt;&lt;P&gt;1. in active month Quantity &amp;gt; 0&lt;/P&gt;&lt;P&gt;2. in previos month Quantity = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( if(aggr(sum({&amp;lt;bg_t={'*'}&amp;gt;}Quantity),AffiliateID,Holding,mes,mes_a )&amp;gt;0 &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; and mes = mes_a&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; , if(aggr(sum({&amp;lt;bg_t={'*'}&amp;gt;}Quantity),AffiliateID,Holding,mes,mes_a )=0 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and mes = (if(right(mes_a,2)-1&amp;gt;0, mes_a -1, left(mes_a,4)-1&amp;amp;12)), 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,0))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is not works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 08:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-if-in-dimention/m-p/450316#M168008</guid>
      <dc:creator />
      <dc:date>2012-12-19T08:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: condition if in dimention</title>
      <link>https://community.qlik.com/t5/QlikView/condition-if-in-dimention/m-p/450317#M168009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in theory ...why it't the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;( &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;bg_t&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={'*'}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;gt;}Quantity),AffiliateID,Holding,mes,mes_a )&amp;gt;0 &lt;BR /&gt; &lt;STRONG&gt;and &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 14pt; font-family: 'Courier New'; color: black;"&gt;mes = mes_a&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; ,1,0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;works&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;bg_t&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;={'*'}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;}, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 14.0pt; font-family: 'Courier New'; color: black;"&gt;mes = mes_a&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; &amp;gt;}Quantity),AffiliateID,Holding,mes,mes_a )&amp;gt;0 ,1,0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;not works&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;i think it must be another topic&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 09:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/condition-if-in-dimention/m-p/450317#M168009</guid>
      <dc:creator />
      <dc:date>2012-12-19T09:49:45Z</dc:date>
    </item>
  </channel>
</rss>

