<?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: Conditional Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578458#M215077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi upali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one possible solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="56194" alt="QlikCommunity_Thread_112511_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/56194_QlikCommunity_Thread_112511_Pic1.JPG.jpg" style="width: 620px; height: 75px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="56201" alt="QlikCommunity_Thread_112511_Pic2.JPG.jpg" class="jive-image" height="121" src="https://community.qlik.com/legacyfs/online/56201_QlikCommunity_Thread_112511_Pic2.JPG.jpg" style="width: 147px; height: 121.21052631578948px;" width="147" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="56202" alt="QlikCommunity_Thread_112511_Pic3.JPG.jpg" class="jive-image" height="181" src="https://community.qlik.com/legacyfs/online/56202_QlikCommunity_Thread_112511_Pic3.JPG.jpg" style="width: 570.8461538461538px; height: 181px;" width="571" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13962229831144627" jivemacro_uid="_13962229831144627" modifiedtitle="true"&gt;
&lt;P&gt;SET minimum3 = if($1&amp;lt;$2 AND $1&amp;lt;$3, $1, if($2&amp;lt;$1 AND $2&amp;lt;$3, $2, $3));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabData:&lt;/P&gt;
&lt;P&gt;LOAD [Item N0],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RISK_YEAR,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Nos,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paid&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2051" data-containertype="14" data-objectid="112511" data-objecttype="1" href="https://community.qlik.com/thread/112511"&gt;http://community.qlik.com/thread/112511&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(html, codepage is 1252, embedded labels, table is @2);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabTemp:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Item N0],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $(minimum3(CountSales, CountNos, CountPaid)) as MinCount;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Item N0],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(IsNum(Sales))*-1 as CountSales,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(IsNum(Nos))*-1 as CountNos,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(IsNum(Paid))*-1 as CountPaid&lt;/P&gt;
&lt;P&gt;Resident tabData&lt;/P&gt;
&lt;P&gt;Group By [Item N0];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabTemp)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Count(DISTINCT RISK_YEAR) as RiskYearCount&lt;/P&gt;
&lt;P&gt;Resident tabData;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabData)&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Item N0],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MinCount &amp;gt;= RiskYearCount as RecordComplete&lt;/P&gt;
&lt;P&gt;Resident tabTemp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table tabTemp;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution takes into account that not only the distinct number of RISK_YEARs per Item No decides whether the records for this Item No are complete or not. In your example there are rows with missing sales values which I also wanted to count for this check.&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>Sun, 30 Mar 2014 23:38:44 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2014-03-30T23:38:44Z</dc:date>
    <item>
      <title>Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578453#M215072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 606px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="87"&gt;RISK_YEAR&lt;/TD&gt;&lt;TD class="xl69" colspan="3" style="border-right: .5pt solid gainsboro; border-left: none;" width="173"&gt;2011&lt;/TD&gt;&lt;TD class="xl69" colspan="3" style="border-right: .5pt solid gainsboro; border-left: none;" width="173"&gt;2012&lt;/TD&gt;&lt;TD class="xl69" colspan="3" style="border-right: .5pt solid gainsboro; border-left: none;" width="173"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17"&gt;Item N0&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none;"&gt;Sales&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Nos&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Paid&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Sales&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Nos&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Paid&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Sales&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Nos&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;Paid&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;22&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;12,578&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1,400&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;23&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;65,777&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;138,982&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="17" style="border-top: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;24&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;63,554&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;22,500&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;63,554&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;36,100&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;63,554&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;28,500&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;25&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;26,805&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;6,200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;26&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;62,255&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;12,500&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;41&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;10,596&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;4,800&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;42&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;37,000&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;29,800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl72" height="17" style="border-top: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;43&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;55,108&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;8,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;51,108&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;21,833&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;51,108&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl73" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="color: #ff0000;"&gt;80,396&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my above pivot table I have all data in display. But I want to dis only records highlighted in red. in other words&amp;nbsp; all records where all columns have figures. Pls help me to solve this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 08:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578453#M215072</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2014-03-30T08:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578454#M215073</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;There are different ways.&lt;/P&gt;&lt;P&gt;You can modify the data model to calculate the flag for each Item in script (one additional load with group by statement). Then use it in your expressions:&lt;/P&gt;&lt;P&gt;Sum(&lt;STRONG&gt;{&amp;lt;[Item all years]={1}&amp;gt;}&lt;/STRONG&gt; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can use set analysis in your expressions to omit the unnecessary Items.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Depending on your data model, the set expression to keep these items could be:&lt;/P&gt;&lt;P&gt;Sales: Sum(&lt;STRONG&gt;{&amp;lt;[Item N0]={'=Count(distinct RISK_YEAR)=3'}&amp;gt;}&lt;/STRONG&gt; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can use the same logic as above using calculated dimension instead of Item N0. It's useful when you don't want modify each expression but can be less performance effective.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 08:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578454#M215073</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-03-30T08:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578455#M215074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Whiteline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"You can modify the data model to calculate the flag for each Item in script (one additional load with group by statement)."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I do not understand above part can you write the sample script for me please &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 10:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578455#M215074</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2014-03-30T10:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578456#M215075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Item N0],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(distinct RISK_YEAR)=3 as [Item all years]&lt;/P&gt;&lt;P&gt;Resident DataTable&lt;/P&gt;&lt;P&gt;Group by&amp;nbsp; [Item N0];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 17:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578456#M215075</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-03-30T17:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578457#M215076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table for script tests:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;right&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 400px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Item N0&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;RISK_YEAR&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Sales&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Nos&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Paid&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;22&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2011&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;23&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2011&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;65,777&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;138,982&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;24&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2011&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;63,554&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;22,500&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;25&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2011&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;26&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2011&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;41&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2011&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;10,596&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;4,800&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;42&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2011&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;43&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2011&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;55,108&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;8,000&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;22&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2012&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;12,578&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;1,400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;23&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2012&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;24&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2012&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;63,554&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;36,100&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;25&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2012&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;26&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2012&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;62,255&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;12,500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;41&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2012&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;42&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2012&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;37,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;43&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2012&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;51,108&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;21,833&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;22&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2013&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;23&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2013&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;24&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2013&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;63,554&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;28,500&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;25&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2013&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;26,805&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;6,200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;26&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2013&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;41&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2013&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;42&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2013&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;-&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;29,800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;43&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;2013&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;51,108&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: right; background-color: transparent; font-family: arial, helvetica, sans-serif; vertical-align: baseline;" width="80"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;80,396&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 22:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578457#M215076</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-03-30T22:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578458#M215077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi upali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one possible solution could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="56194" alt="QlikCommunity_Thread_112511_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/56194_QlikCommunity_Thread_112511_Pic1.JPG.jpg" style="width: 620px; height: 75px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="56201" alt="QlikCommunity_Thread_112511_Pic2.JPG.jpg" class="jive-image" height="121" src="https://community.qlik.com/legacyfs/online/56201_QlikCommunity_Thread_112511_Pic2.JPG.jpg" style="width: 147px; height: 121.21052631578948px;" width="147" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="56202" alt="QlikCommunity_Thread_112511_Pic3.JPG.jpg" class="jive-image" height="181" src="https://community.qlik.com/legacyfs/online/56202_QlikCommunity_Thread_112511_Pic3.JPG.jpg" style="width: 570.8461538461538px; height: 181px;" width="571" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13962229831144627" jivemacro_uid="_13962229831144627" modifiedtitle="true"&gt;
&lt;P&gt;SET minimum3 = if($1&amp;lt;$2 AND $1&amp;lt;$3, $1, if($2&amp;lt;$1 AND $2&amp;lt;$3, $2, $3));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabData:&lt;/P&gt;
&lt;P&gt;LOAD [Item N0],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RISK_YEAR,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Nos,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paid&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2051" data-containertype="14" data-objectid="112511" data-objecttype="1" href="https://community.qlik.com/thread/112511"&gt;http://community.qlik.com/thread/112511&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(html, codepage is 1252, embedded labels, table is @2);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabTemp:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Item N0],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; $(minimum3(CountSales, CountNos, CountPaid)) as MinCount;&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Item N0],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(IsNum(Sales))*-1 as CountSales,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(IsNum(Nos))*-1 as CountNos,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sum(IsNum(Paid))*-1 as CountPaid&lt;/P&gt;
&lt;P&gt;Resident tabData&lt;/P&gt;
&lt;P&gt;Group By [Item N0];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabTemp)&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Count(DISTINCT RISK_YEAR) as RiskYearCount&lt;/P&gt;
&lt;P&gt;Resident tabData;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left Join (tabData)&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [Item N0],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MinCount &amp;gt;= RiskYearCount as RecordComplete&lt;/P&gt;
&lt;P&gt;Resident tabTemp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table tabTemp;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution takes into account that not only the distinct number of RISK_YEARs per Item No decides whether the records for this Item No are complete or not. In your example there are rows with missing sales values which I also wanted to count for this check.&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>Sun, 30 Mar 2014 23:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Expression/m-p/578458#M215077</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-03-30T23:38:44Z</dc:date>
    </item>
  </channel>
</rss>

