<?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 then esle statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178056#M889224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, how quick did you reply!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You put an extra bracket on the end. I took that off and got garbage after expression:"'," error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the first if statement none of the restricted are highlighted in the second expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Aug 2016 12:56:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-26T12:56:52Z</dc:date>
    <item>
      <title>Nested if then esle statement</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178054#M889222</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 two if statements as shown below. The first works out the revenue target value for the current month to date if the day is not the first of the month and the seconds works out the values for the previous month (the dimension is customer. My problem is that I don't know how to put this in one statement as it errors. Maybe I'm not doing the best way and help would be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())&amp;gt;1, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;MonthID = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(MonthID))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt; Quarter = ,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[LinkId]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"TMP"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt; Month ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=month(today()))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt; Year ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=year(today()))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;BR /&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Revenue Target Value]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;BR /&gt;--------------- &lt;BR /&gt; =if &lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 8pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;day(today())=1,&lt;BR /&gt; sum({$&amp;lt;MonthID = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(MonthID))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt; Quarter = ,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[LinkId]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"TMP"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt; Month ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=month(Addmonths(Today(), -1)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;},&lt;BR /&gt; Year ={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=year(today()))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;BR /&gt; &lt;BR /&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Revenue Target Value]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178054#M889222</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if then esle statement</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178055#M889223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Day(Today()) &amp;gt; 1, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Sum({$&amp;lt;MonthID = {$(=Max(MonthID))}, &lt;/STRONG&gt;&lt;STRONG&gt;Quarter = , &lt;/STRONG&gt;&lt;STRONG&gt;[LinkId] = {"TMP"}, &lt;/STRONG&gt;&lt;STRONG&gt;Month ={$(=month(today()))}, &lt;/STRONG&gt;&lt;STRONG&gt;Year ={$(=year(today()))}&lt;/STRONG&gt;&lt;STRONG&gt;&amp;gt;} [Revenue Target Value])),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;MonthID = {$(=Max(MonthID))}, &lt;/STRONG&gt;&lt;STRONG&gt;Quarter = , &lt;/STRONG&gt;&lt;STRONG&gt;[LinkId] = {"TMP"}, &lt;/STRONG&gt;&lt;STRONG&gt;Month ={$(=month(Addmonths(Today(), -1)))}, &lt;/STRONG&gt;&lt;STRONG&gt;Year ={$(=year(today()))}&lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;gt;} [Revenue Target Value]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 12:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178055#M889223</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-26T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if then esle statement</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178056#M889224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, how quick did you reply!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You put an extra bracket on the end. I took that off and got garbage after expression:"'," error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the first if statement none of the restricted are highlighted in the second expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 12:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178056#M889224</guid>
      <dc:creator />
      <dc:date>2016-08-26T12:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if then esle statement</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178057#M889225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, so this isn't working? (Removed the parenthesis after the end of first Sum function)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=If(Day(Today()) &amp;gt; 1, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum({$&amp;lt;MonthID = {$(=Max(MonthID))}, &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Quarter = , &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;[LinkId] = {"TMP"}, &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Month ={$(=month(today()))}, &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Year ={$(=year(today()))}&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;gt;} [Revenue Target Value]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sum({$&amp;lt;MonthID = {$(=Max(MonthID))}, &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Quarter = , &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;[LinkId] = {"TMP"}, &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Month ={$(=month(Addmonths(Today(), -1)))}, &lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Year ={$(=year(today()))}&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;gt;} [Revenue Target Value]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 13:00:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178057#M889225</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-26T13:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if then esle statement</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178058#M889226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perfect thanks so much. You're a diamond., are you on linkedin?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 13:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178058#M889226</guid>
      <dc:creator />
      <dc:date>2016-08-26T13:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if then esle statement</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178059#M889227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I sure am &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 13:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178059#M889227</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-26T13:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if then esle statement</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178060#M889228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what's your last name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 13:11:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178060#M889228</guid>
      <dc:creator />
      <dc:date>2016-08-26T13:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if then esle statement</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178061#M889229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its Talwar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 13:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-then-esle-statement/m-p/1178061#M889229</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-26T13:15:16Z</dc:date>
    </item>
  </channel>
</rss>

