<?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 - Need Help Deciphering in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-IF-Need-Help-Deciphering/m-p/1695048#M700618</link>
    <description>&lt;P&gt;I was asked to help on a project and never seen a nested if like this below and for the life of me can't Decipher it - please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if (Month([AsOfDate]) &amp;amp; Year([AsOfDate]) = Month( MakeDate(&amp;nbsp; if( [CalendarMonth]&amp;gt;=10, [OOPlan.FiscalYear]-1, [OOPlan.FiscalYear]),[CalendarMonth],1)) &amp;amp; Year( MakeDate&amp;nbsp; (if([CalendarMonth]&amp;gt;=10,[OOPlan.FiscalYear]-1, [OOPlan.FiscalYear]), [CalendarMonth],1)),[AsOfDate.autoCalendar.YearMonth], null())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also if someone can point me to a place i can read up, but i can't make heads or tails of where constructs make any sense, like where is the then and else in this convoluted concatenation - thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 21:52:20 GMT</pubDate>
    <dc:creator>ninjasoft</dc:creator>
    <dc:date>2020-04-20T21:52:20Z</dc:date>
    <item>
      <title>Nested IF - Need Help Deciphering</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-Need-Help-Deciphering/m-p/466681#M700615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been given the task of updating/fixing a dashboard (I did not create) and am stuck deciphering a nested IF statement. It has to do with 2 dates, and what day of the week they fall on, and whether to alter the original date and create a new date, or not, I believe. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt; Can someone look at the statement below and turn it into a word problem so I can understand what the original author was trying to do? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it starts out with: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Creation Date - Request Date &amp;lt; 0.5 ThenRequest Date + 3 Else Request Date + 2) = Sun Then...(and I get lost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(WeekDay((&lt;/P&gt;&lt;P&gt;if(("CREATION_DATE"-"REQUEST_DATE") &amp;lt;.5,("REQUEST_DATE"+3),("REQUEST_DATE"+2)))) = 'Sun', ((&lt;/P&gt;&lt;P&gt;if(("CREATION_DATE"-"REQUEST_DATE") &amp;lt;.5,("REQUEST_DATE"+3),("REQUEST_DATE"+2)))+2), &lt;/P&gt;&lt;P&gt;if (WeekDay(&lt;/P&gt;&lt;P&gt;if(("CREATION_DATE"-"REQUEST_DATE") &amp;lt;.5,("REQUEST_DATE"+3),("REQUEST_DATE"+2))) = 'Sat', ((&lt;/P&gt;&lt;P&gt;if(("CREATION_DATE"-"REQUEST_DATE") &amp;lt;.5,("REQUEST_DATE"+3),("REQUEST_DATE"+2)))+2), (&lt;/P&gt;&lt;P&gt;if(("CREATION_DATE"-"REQUEST_DATE") &amp;lt;.5,("REQUEST_DATE"+3),("REQUEST_DATE"+2))))) AS NEW_REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks All,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 16:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-Need-Help-Deciphering/m-p/466681#M700615</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2012-10-30T16:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF - Need Help Deciphering</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-Need-Help-Deciphering/m-p/466682#M700616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It calculates a new request date NEW_REQUEST. If the difference between CREATION_DATE and REQUEST_DATE is less than half a day, then add three days to REQUEST_DATE otherwise add two days. That yields a new date. If the new date is a Sunday or a Saturday add another two days. Call the result NEW_REQUEST.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 17:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-Need-Help-Deciphering/m-p/466682#M700616</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-30T17:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF - Need Help Deciphering</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-Need-Help-Deciphering/m-p/466683#M700617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I knew someone here could figure that out! Thanks Gysbert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 17:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-Need-Help-Deciphering/m-p/466683#M700617</guid>
      <dc:creator>johnca</dc:creator>
      <dc:date>2012-10-30T17:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF - Need Help Deciphering</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-Need-Help-Deciphering/m-p/1695048#M700618</link>
      <description>&lt;P&gt;I was asked to help on a project and never seen a nested if like this below and for the life of me can't Decipher it - please help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if (Month([AsOfDate]) &amp;amp; Year([AsOfDate]) = Month( MakeDate(&amp;nbsp; if( [CalendarMonth]&amp;gt;=10, [OOPlan.FiscalYear]-1, [OOPlan.FiscalYear]),[CalendarMonth],1)) &amp;amp; Year( MakeDate&amp;nbsp; (if([CalendarMonth]&amp;gt;=10,[OOPlan.FiscalYear]-1, [OOPlan.FiscalYear]), [CalendarMonth],1)),[AsOfDate.autoCalendar.YearMonth], null())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also if someone can point me to a place i can read up, but i can't make heads or tails of where constructs make any sense, like where is the then and else in this convoluted concatenation - thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 21:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-Need-Help-Deciphering/m-p/1695048#M700618</guid>
      <dc:creator>ninjasoft</dc:creator>
      <dc:date>2020-04-20T21:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Nested IF - Need Help Deciphering</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-IF-Need-Help-Deciphering/m-p/1696868#M700620</link>
      <description>&lt;LI-CODE lang="markup"&gt;=if (Month([AsOfDate]) &amp;amp; Year([AsOfDate]) = Month( MakeDate(  
														if( [CalendarMonth]&amp;gt;=10, [OOPlan.FiscalYear]-1, [OOPlan.FiscalYear])
														,[CalendarMonth]
														,1
													)//MakeDate
											)//Month 
												   &amp;amp; 
											Year( MakeDate  (
												   		if([CalendarMonth]&amp;gt;=10,[OOPlan.FiscalYear]-1, [OOPlan.FiscalYear])
												   		, [CalendarMonth]
												   		,1
												  )//MakeDate
											)//Year
	,[AsOfDate.autoCalendar.YearMonth]	//Then
	,null()								//Else
)//If&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 27 Apr 2020 01:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-IF-Need-Help-Deciphering/m-p/1696868#M700620</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-04-27T01:27:55Z</dc:date>
    </item>
  </channel>
</rss>

