<?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: Help on Nested IF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-on-Nested-IF/m-p/838551#M1001778</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_167226_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88567_QlikCommunity_Thread_167226_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_167226_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/88568_QlikCommunity_Thread_167226_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_167226_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/88569_QlikCommunity_Thread_167226_Pic3.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_167226_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/88570_QlikCommunity_Thread_167226_Pic4.JPG" style="height: 204px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_167226_Pic5.JPG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/88571_QlikCommunity_Thread_167226_Pic5.JPG" style="height: 220px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Jun 2015 11:10:05 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2015-06-06T11:10:05Z</dc:date>
    <item>
      <title>Help on Nested IF</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Nested-IF/m-p/838549#M1001776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Two fields like [Emp Hiring Year] and normal [Calendar Year]&lt;/P&gt;&lt;P&gt;Now issue is if [Emp Hire Year]=Max(Year) then emp status considered as CY&lt;/P&gt;&lt;P&gt;if[Emp Hire Year]=Max(Year)-1 then PY&lt;/P&gt;&lt;P&gt;if[Emp Hire Year]=Max(Year)-2 then LY&lt;/P&gt;&lt;P&gt;and if emp status is CY or PY i should display value "In" or if emp status is LY or any other i have to display "Out" as a value in list box.&lt;/P&gt;&lt;P&gt;i have took a list box and in general instead of field i took expression.&lt;/P&gt;&lt;P&gt;can anyone help me with the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 03:59:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Nested-IF/m-p/838549#M1001776</guid>
      <dc:creator />
      <dc:date>2015-06-06T03:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Nested IF</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Nested-IF/m-p/838550#M1001777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From my understanding you are trying to create a calculated dimension. Theoretically that means that you create a dimension that does not exist in your data model, which will cost you calculation time in run-time. A calculated dimension can also give you logical problems, if you can not predict how QlikView will relate the calculated dimension to your data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My general advise is that you should always try to avoid creating a calculated dimension if you can pre-calculate it in your script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be a feasible solution to pre-calculate the&amp;nbsp; CY/PY/LY and In/Out flags during reload and add them as fields in your data model?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 04:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Nested-IF/m-p/838550#M1001777</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-06-06T04:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Nested IF</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Nested-IF/m-p/838551#M1001778</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;one solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_167226_Pic1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88567_QlikCommunity_Thread_167226_Pic1.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_167226_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/88568_QlikCommunity_Thread_167226_Pic2.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_167226_Pic3.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/88569_QlikCommunity_Thread_167226_Pic3.JPG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_167226_Pic4.JPG" class="image-4 jive-image" src="https://community.qlik.com/legacyfs/online/88570_QlikCommunity_Thread_167226_Pic4.JPG" style="height: 204px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_167226_Pic5.JPG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/88571_QlikCommunity_Thread_167226_Pic5.JPG" style="height: 220px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 11:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Nested-IF/m-p/838551#M1001778</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-06-06T11:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Nested IF</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Nested-IF/m-p/838552#M1001779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another solution at the script level; script is a copy of Marco's script (thanks) with some (bold) change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tabCalendar:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD RecNo()+1995 as [Calendar Year]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AutoGenerate 20;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;tmp: &lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;LOAD max([Calendar Year]) as MaxYear Resident tabCalendar;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;LET vMaxYear=Peek('MaxYear');&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;DROP Table tmp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tabEmp:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; *,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; Pick(WildMatch([Emp Hiring Year],$(vMaxYear),$(vMaxYear)-1,'*'),'In','In','Out') as [In/Out],&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; Pick(Match([Emp Hiring Year],$(vMaxYear),$(vMaxYear)-1,$(vMaxYear)-2),'CY','PY','LY') as Status;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD RecNo() as EmpID,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Rand()*20+1995) as [Emp Hiring Year]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AutoGenerate 300;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 17:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Nested-IF/m-p/838552#M1001779</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-06T17:21:08Z</dc:date>
    </item>
  </channel>
</rss>

