<?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: How to use if Condition in a set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-if-Condition-in-a-set-analysis/m-p/65542#M10878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, It is not working.&lt;/P&gt;&lt;P&gt;Its still giving the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have to use the If condition statement in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg : I have a list box which is having month from Jan15 to Dec 17 and having a table which is giving me Sum(Sales)&lt;/P&gt;&lt;P&gt;I want to restrict the Calculated value only till Jan15 to Dec15.&lt;/P&gt;&lt;P&gt;And I am not using the dimension in the table.&lt;/P&gt;&lt;P&gt;I want to use only expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2018 14:22:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-07T14:22:56Z</dc:date>
    <item>
      <title>How to use if Condition in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-Condition-in-a-set-analysis/m-p/65540#M10876</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 am trying to restrict the data based on month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have below expression in my straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SUM({&amp;lt;TRptCont.RecordType = {'CL'}, TDimMonth.Month=, TDimMonth.MonthIndex = {"&amp;lt;=$(=MAX({test}TDimMonth.MonthIndex))"},TDimMonth.Year=,&lt;/P&gt;&lt;P&gt; TDimMonth.YearNo={"&amp;gt;=$(vYR)"}&amp;gt;}(TRptCont.Cont_Count_1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to incorporate the below if statement in the above expression.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=IF(TDimMonth.MonthIndex &amp;lt;= $(=MAX(TDimMonth.MonthIndex)) AND TDimMonth.MonthIndex &amp;lt;= $(=MAX({test}TDimMonth.MonthIndex)) , TDimMonth.Month)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;When I am trying to do so I am getting all the value as 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please suggest any solution for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-Condition-in-a-set-analysis/m-p/65540#M10876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-07T14:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if Condition in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-Condition-in-a-set-analysis/m-p/65541#M10877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;=IF(TDimMonth.MonthIndex &amp;lt;= MAX(TOTAL TDimMonth.MonthIndex) or TDimMonth.MonthIndex &amp;lt;= MAX(TOTAL {&amp;lt;test&amp;gt;}TDimMonth.MonthIndex) , TDimMonth.Month)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-Condition-in-a-set-analysis/m-p/65541#M10877</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-02-07T14:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if Condition in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-Condition-in-a-set-analysis/m-p/65542#M10878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, It is not working.&lt;/P&gt;&lt;P&gt;Its still giving the same value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have to use the If condition statement in the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg : I have a list box which is having month from Jan15 to Dec 17 and having a table which is giving me Sum(Sales)&lt;/P&gt;&lt;P&gt;I want to restrict the Calculated value only till Jan15 to Dec15.&lt;/P&gt;&lt;P&gt;And I am not using the dimension in the table.&lt;/P&gt;&lt;P&gt;I want to use only expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:22:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-Condition-in-a-set-analysis/m-p/65542#M10878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-07T14:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if Condition in a set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-Condition-in-a-set-analysis/m-p/65543#M10879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;month = {"&amp;gt;=$(=Date(Min(month), 'MMMYY'))&amp;lt;=$(=Date(AddMonths(month, -2), 'MMMYY')"}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-Condition-in-a-set-analysis/m-p/65543#M10879</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-02-07T14:26:59Z</dc:date>
    </item>
  </channel>
</rss>

