<?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 result for the expression in nested if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197494#M386115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's really hard to be appreciated by Bond. Really tough character. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt; Great that finally I have been able to provide an acceptable solution. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2016 09:34:27 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2016-11-02T09:34:27Z</dc:date>
    <item>
      <title>conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197467#M386088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all !&lt;/P&gt;&lt;P&gt;In one of my table I have a column to display the price which comes in variable 'M' from a QVD. My dimension is the item name and the corresponding price (Here 'M') should be shown. I have to show the latest price if more than one price is available in the QVD. The column to identify the latest price is 'MonthYear'. Please help me in modifying the expression so that it will display the latest price.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here we have to modify the expression part of first if , that is Max (M) . It should be Latest(M) according to &lt;SPAN style="font-size: 13.3333px;"&gt;MonthYear column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;(&lt;SPAN style="color: #993300;"&gt;M&lt;/SPAN&gt;))&amp;gt;1,&lt;SPAN style="color: #0000ff;"&gt;Max&lt;/SPAN&gt;(&lt;SPAN style="color: #993300;"&gt;M&lt;/SPAN&gt;),&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;(&lt;SPAN style="color: #993300;"&gt;M&lt;/SPAN&gt;))=0,0,&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;(&lt;SPAN style="color: #993300;"&gt;M&lt;/SPAN&gt;))=1,&lt;SPAN style="color: #993300;"&gt;M&lt;/SPAN&gt;)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 11:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197467#M386088</guid>
      <dc:creator />
      <dc:date>2016-10-27T11:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197468#M386089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;firstsortedvalue(M,-MonthYear)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 11:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197468#M386089</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-10-27T11:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197469#M386090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(M, -MonthYear)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 11:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197469#M386090</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-27T11:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197470#M386091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YaaY ! It works ! Thanks&amp;nbsp; a ton to both of you ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 11:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197470#M386091</guid>
      <dc:creator />
      <dc:date>2016-10-27T11:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197471#M386092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry guys ! After full round of testing I found the expression &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;firstsortedvalue(M,-MonthYear) was not working properly. Please help me out. &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/216189"&gt;vinieme12&lt;/A&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; font-size: 13px;"&gt;I have pasted the snap of my table with columns M with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;firstsortedvalue(M,-MonthYear) expression , M with Max(M) expression and Count(M) for your reference.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="m firstsorted.JPG" class="jive-image image-1" src="/legacyfs/online/142325_m firstsorted.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 06:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197471#M386092</guid>
      <dc:creator />
      <dc:date>2016-10-28T06:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197472#M386093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a sample app? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 06:39:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197472#M386093</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-10-28T06:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197473#M386094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go . For the selected material there are more than one 'M price' . We have to display latest m price out of that. Check the expressions of all the objects in the dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 07:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197473#M386094</guid>
      <dc:creator />
      <dc:date>2016-10-28T07:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197474#M386095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where is this chart in the sample? Also what is the dimension here in the image you posted?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 09:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197474#M386095</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-28T09:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197475#M386096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;Please find the file attached. Item is the dimension here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 05:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197475#M386096</guid>
      <dc:creator />
      <dc:date>2016-10-31T05:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197476#M386097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ , &lt;/P&gt;&lt;P&gt;Is it possible to display the records as i expect ? Because I tried a lot but no luck at all &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 12:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197476#M386097</guid>
      <dc:creator />
      <dc:date>2016-11-01T12:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197477#M386098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your MatPlantMMYY field should be number or a datevalue, so create a new YearMonth field using YearNo and MonthNo fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearNo&amp;amp;NUM(MonthNo,'##') as &lt;STRONG&gt;YearMonth&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the expression use&lt;/P&gt;&lt;P&gt;= firstsortedvalue(MAPeur,-&lt;STRONG&gt;YearMonth&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 14:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197477#M386098</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-11-01T14:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197478#M386099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or Try this; but you need to get rid of the null values in those fields, for the year assign value like 1000 and month 0! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MAPeur&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;YearNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;MonthNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;IMG alt="firssortedvalue.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/142601_firssortedvalue.PNG" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2016 14:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197478#M386099</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-11-01T14:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197479#M386100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks for your reply !&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But still I am getting null ( - ) for some of the items whose M count is &amp;gt; 1. Also I am not able to understand your 1000 and 0 setting &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But most of the M values are displayed now. PFB screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="m fs yearnomonthno.JPG" class="jive-image image-1" src="/legacyfs/online/142657_m fs yearnomonthno.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 06:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197479#M386100</guid>
      <dc:creator />
      <dc:date>2016-11-02T06:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197480#M386101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bond,&lt;/P&gt;&lt;P&gt;So your weapons can't help you here. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I your requirement clear enough to me. Could you please explain your expected output with logic, against your sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 06:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197480#M386101</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-11-02T06:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197481#M386102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;For the rows which are null ( - ) in the M first sorted are null because there are more than one M values (see M count for those null rows). So we have to tell QlikView which M value should display. The condition is latest M value and it cn be implemented by using FirstsortedValue with weightage as YearNo&amp;amp;MonthNo which will identify the latest M value . So now it identified the latest M value for most of the items , but still some of the items are null ( - )&amp;nbsp; (as highlighted yellow in my last screenshot). We need to display the M values for those too now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 07:00:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197481#M386102</guid>
      <dc:creator />
      <dc:date>2016-11-02T07:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197482#M386103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try below one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Aggr(FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;MAPeur&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,-(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;YearNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;MonthNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)),MAPeur)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 07:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197482#M386103</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-02T07:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197483#M386104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No luck man &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 07:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197483#M386104</guid>
      <dc:creator />
      <dc:date>2016-11-02T07:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197484#M386105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Second parameter of firstsortedvalue() has to return a numeric value. But in your expression &lt;SPAN style="font-family: 'courier new', courier;"&gt;FirstSortedValue( MAPeur, -MatPlantMMMYY)&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;MatPlantMMMYY&lt;/STRONG&gt;&amp;nbsp; is a string. So it doesn't work. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 07:16:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197484#M386105</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-11-02T07:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197485#M386106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes accepted. Now i changed it to YearNo&amp;amp;MonthNo. That is why I am getting values for some of the rows (see the row above the highlighted row in my latest screenshot). I am still worried about rows like the highlighted ones. why the sort weight&amp;nbsp; '-YearNo&amp;amp;MonthNo' is not working for those ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 07:20:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197485#M386106</guid>
      <dc:creator />
      <dc:date>2016-11-02T07:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: conditional result for the expression in nested if</title>
      <link>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197486#M386107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more issue noticed - most of the cases there is no MAPeur value on latest date. Ex. KNED-&amp;gt; 4J6K1029P001&lt;/P&gt;&lt;P&gt;latest date is Nov2016, and there is no &lt;SPAN style="font-size: 13.3333px;"&gt;MAPeur. Hence, firstsortedvalue would not get anything to return even if you provide the date field as the second parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Had there been data for latest date, you could probably even use something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'courier new', courier;"&gt;FirstSortedValue( MAPeur, -Date#(Right(MatPlantMMMYY, 7),'MMMYY'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 07:22:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditional-result-for-the-expression-in-nested-if/m-p/1197486#M386107</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2016-11-02T07:22:14Z</dc:date>
    </item>
  </channel>
</rss>

