<?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: Nested If statement help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872193#M304877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(SubStringCount(Concat([_dimension], '|'), 'Month') = 1 and &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;SubStringCount(Concat([_dimension], '|'), 'New / Renew') = 1, Sum(EIF),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;SubStringCount(Concat([_dimension], '|'), 'Month') = 1 and &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;SubStringCount(Concat([_dimension], '|'), 'New / Renew') &amp;lt;&amp;gt; 1, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;S&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;um({&amp;lt;[NEW RENEW IND]={$(vCombinedChoice)}&amp;gt;}[EIF]),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;If(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;SubStringCount(Concat([_dimension], '|'), 'Month') &amp;lt;&amp;gt; 1 and &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;SubStringCount(Concat([_dimension], '|'), 'New / Renew') &amp;lt;&amp;gt; 1,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;S&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;um({&amp;lt;[MONTH-NUMERIC] ={$(vMaxMonth)}, [NEW RENEW IND]={$(vCombinedChoice)}&amp;gt;}[EIF]))))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2015 18:52:05 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-05-04T18:52:05Z</dc:date>
    <item>
      <title>Nested If statement help</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872192#M304876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure how to properly set up my If statement to achieve the results desired.&amp;nbsp; Here is my code and what I am looking to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(SubStringCount(Concat([_dimension], '|'), 'Month'and 'New / Renew'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(EIF),&lt;/P&gt;&lt;P&gt;&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; IF(SubStringCount(Concat([_dimension], '|'), 'Month'),&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[NEW RENEW IND]={$(vCombinedChoice)}&amp;gt;}[EIF]),&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt;[MONTH-NUMERIC] ={$(vMaxMonth)}, [NEW RENEW IND]={$(vCombinedChoice)}&amp;gt;}[EIF])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a report builder and I am looking to change the results based on the selection.&amp;nbsp; If user selects both Month and New / Renew dimensions and anything else then I just want a basic sum of EIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selects Month and anything else that is not New / Renew, then I want it to sum with new renew = combined or user selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, if neither Month or New / Renew are selected then I want new renew = combined / user selection and month = highest month selected.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expressions are correct, I just need help on the if statements picking up the proper dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 18:48:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872192#M304876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-04T18:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement help</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872193#M304877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(SubStringCount(Concat([_dimension], '|'), 'Month') = 1 and &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;SubStringCount(Concat([_dimension], '|'), 'New / Renew') = 1, Sum(EIF),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;If(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;SubStringCount(Concat([_dimension], '|'), 'Month') = 1 and &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;SubStringCount(Concat([_dimension], '|'), 'New / Renew') &amp;lt;&amp;gt; 1, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;S&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;um({&amp;lt;[NEW RENEW IND]={$(vCombinedChoice)}&amp;gt;}[EIF]),&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;If(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;SubStringCount(Concat([_dimension], '|'), 'Month') &amp;lt;&amp;gt; 1 and &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;SubStringCount(Concat([_dimension], '|'), 'New / Renew') &amp;lt;&amp;gt; 1,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;S&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;um({&amp;lt;[MONTH-NUMERIC] ={$(vMaxMonth)}, [NEW RENEW IND]={$(vCombinedChoice)}&amp;gt;}[EIF]))))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 18:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872193#M304877</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-04T18:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement help</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872194#M304878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, worked as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 19:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872194#M304878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-04T19:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement help</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872195#M304879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seemed to be correct, but when I input only New / Renew, it now comes up as a null value.&amp;nbsp; Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 19:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872195#M304879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-04T19:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement help</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872196#M304880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome! I wasn't sure if I placed all the parenthesis correctly or not. But I am glad it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 19:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872196#M304880</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-04T19:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement help</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872197#M304881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New / Renew needs to exactly match what we have in the if statement. Spaces and cases needs to exactly match. Are they matching? If not fix the expression accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you can share the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 19:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872197#M304881</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-04T19:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement help</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872198#M304882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems as there needed to be a statement where New / Renew =1 and Month &amp;lt;&amp;gt; 1.&amp;nbsp; I added that to have 4 total statements and it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for the help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 19:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872198#M304882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-04T19:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement help</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872199#M304883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh okay, I just saw three statements to begin with and was not sure if there were 3 or 4 different results. But I am glad it all worked out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 19:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-help/m-p/872199#M304883</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-04T19:44:40Z</dc:date>
    </item>
  </channel>
</rss>

