<?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 Using If else Condition with Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-If-else-Condition-with-Set-Analysis/m-p/693961#M250944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get rolling 13 months data in a combo chart while using an if condition to meet the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list box for Year with "Always one selected value". I am trying to get the requried details irrespective of the list box selection, however when i use the below condition it is showing the month from the selected year to current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below expression works fine for me where i do not require rolling months data; for which i am excluding Year= from expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(&amp;lt;field_name&amp;gt;)=0,sum({&amp;lt;Year=,REP_MONTH={"&amp;gt;=$(VR13)&amp;lt;=$(VCurr)"},REP_LVL={'CO'},KP=,PC=&amp;gt;}Amount,Sum({&amp;lt;Year=,REP_MONTH={"&amp;gt;=$(VR13)&amp;lt;=$(VCurr)"},REP_LVL={'PO'},KP=,PC=&amp;gt;})&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2014 12:18:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-17T12:18:33Z</dc:date>
    <item>
      <title>Using If else Condition with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-If-else-Condition-with-Set-Analysis/m-p/693961#M250944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to get rolling 13 months data in a combo chart while using an if condition to meet the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list box for Year with "Always one selected value". I am trying to get the requried details irrespective of the list box selection, however when i use the below condition it is showing the month from the selected year to current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below expression works fine for me where i do not require rolling months data; for which i am excluding Year= from expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(&amp;lt;field_name&amp;gt;)=0,sum({&amp;lt;Year=,REP_MONTH={"&amp;gt;=$(VR13)&amp;lt;=$(VCurr)"},REP_LVL={'CO'},KP=,PC=&amp;gt;}Amount,Sum({&amp;lt;Year=,REP_MONTH={"&amp;gt;=$(VR13)&amp;lt;=$(VCurr)"},REP_LVL={'PO'},KP=,PC=&amp;gt;})&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 12:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-If-else-Condition-with-Set-Analysis/m-p/693961#M250944</guid>
      <dc:creator />
      <dc:date>2014-06-17T12:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using If else Condition with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-If-else-Condition-with-Set-Analysis/m-p/693962#M250945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;REP_MONTH is a field containing a date, like Month start? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what is the definition of your variables $(VR13) and $(VCurr)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's really, really hard to help you with your specific question with the information provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either detail your request with a description of your data model etc, or even better, upload a small sample application that demonstrates your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, I am just guessing that variable $(VR13) and or $(vCurr) is in fact depending on your selected year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 19:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-If-else-Condition-with-Set-Analysis/m-p/693962#M250945</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-06-17T19:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using If else Condition with Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-If-else-Condition-with-Set-Analysis/m-p/693963#M250946</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;REP_MONTH is year month something like 201405.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VR13 is current month minus 13 months and VCurr is current month. For example the data from 201305 to 201405.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 07:49:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-If-else-Condition-with-Set-Analysis/m-p/693963#M250946</guid>
      <dc:creator />
      <dc:date>2014-06-18T07:49:15Z</dc:date>
    </item>
  </channel>
</rss>

