<?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 Nested if statements and Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-if-statements-and-Set-Analysis/m-p/398278#M148309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am nesting some if statements and would like some assistance with the following expression. The if WeekDay 'Tue' is working, but if I add the first line to the expression it stops working. Can someone tell me why. I am attaching the file and if you open the expression for Last Week you will see this expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (WeekDay([vToday])='Mon',(Sum({$&amp;lt;DaysFilled.Date = {'$(=vToday)'} &amp;gt;} DaysFilled.Days)-Sum({$&amp;lt;DaysFilled.Date = {'$(=vSevenDayAgo)'} &amp;gt;}DaysFilled.Days)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; or if (WeekDay([vToday])='Tue',(Sum({$&amp;lt;DaysFilled.Date = {'$(=vOneDayAgo)'} &amp;gt;} DaysFilled.Days)-Sum({$&amp;lt;DaysFilled.Date = {'$(=vEightDayAgo)'} &amp;gt;}DaysFilled.Days)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Sep 2012 20:41:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-11T20:41:54Z</dc:date>
    <item>
      <title>Nested if statements and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statements-and-Set-Analysis/m-p/398278#M148309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am nesting some if statements and would like some assistance with the following expression. The if WeekDay 'Tue' is working, but if I add the first line to the expression it stops working. Can someone tell me why. I am attaching the file and if you open the expression for Last Week you will see this expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (WeekDay([vToday])='Mon',(Sum({$&amp;lt;DaysFilled.Date = {'$(=vToday)'} &amp;gt;} DaysFilled.Days)-Sum({$&amp;lt;DaysFilled.Date = {'$(=vSevenDayAgo)'} &amp;gt;}DaysFilled.Days)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; or if (WeekDay([vToday])='Tue',(Sum({$&amp;lt;DaysFilled.Date = {'$(=vOneDayAgo)'} &amp;gt;} DaysFilled.Days)-Sum({$&amp;lt;DaysFilled.Date = {'$(=vEightDayAgo)'} &amp;gt;}DaysFilled.Days)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 20:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statements-and-Set-Analysis/m-p/398278#M148309</guid>
      <dc:creator />
      <dc:date>2012-09-11T20:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statements and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statements-and-Set-Analysis/m-p/398279#M148310</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (WeekDay([vToday])='Mon',(Sum({$&amp;lt;DaysFilled.Date = {'$(=vToday)'} &amp;gt;} DaysFilled.Days)-Sum({$&amp;lt;DaysFilled.Date = {'$(=vSevenDayAgo)'} &amp;gt;}DaysFilled.Days)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (WeekDay([vToday])='Tue',(Sum({$&amp;lt;DaysFilled.Date = {'$(=vOneDayAgo)'} &amp;gt;} DaysFilled.Days)-Sum({$&amp;lt;DaysFilled.Date = {'$(=vEightDayAgo)'} &amp;gt;}DaysFilled.Days))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 20:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statements-and-Set-Analysis/m-p/398279#M148310</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-11T20:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statements and Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-if-statements-and-Set-Analysis/m-p/398280#M148311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 21:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-if-statements-and-Set-Analysis/m-p/398280#M148311</guid>
      <dc:creator />
      <dc:date>2012-09-11T21:03:15Z</dc:date>
    </item>
  </channel>
</rss>

