<?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: Firstsortedvalue returns Null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905631#M1006847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I can't take all the credit for the formula, because it's adapted from &lt;A href="https://community.qlik.com/qlik-users/21667"&gt;cleveranjos&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The /10 is only to get it in a small factor that the second sort doesn't mess up the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Nuno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 10:32:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-12T10:32:54Z</dc:date>
    <item>
      <title>Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905625#M1006836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody, I have the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DescriptionFixed&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;OriginalAmt&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DescriptionFixed&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I have exactly the same amount for two different items the firstsortedvalue brings me NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/86065_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get just one item instead of NULL?&amp;nbsp; Either item will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciate it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 23:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905625#M1006836</guid>
      <dc:creator />
      <dc:date>2015-05-08T23:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905626#M1006837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I can't try it at the moment.&lt;/P&gt;&lt;P&gt;Try to add distinct keyword:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;DISTINCT &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DescriptionFixed&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;OriginalAmt&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;DescriptionFixed&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;MR&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 23:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905626#M1006837</guid>
      <dc:creator>mrossoit</dc:creator>
      <dc:date>2015-05-08T23:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905627#M1006838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're already showing the value you want to calculate in the dimension column. Why do you think you need that expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2015 06:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905627#M1006838</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-09T06:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905628#M1006839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please try:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=FirstSortedValue(country,-Aggr(&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;OriginalAmt&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;+rank(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;DescriptionFixed&lt;/SPAN&gt;,&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;DescriptionFixed&lt;/SPAN&gt;)/10,&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;DescriptionFixed&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This will do the second sorting by alphabetical order (DescriptionFixed field).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Kind regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Nuno&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 10:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905628#M1006839</guid>
      <dc:creator />
      <dc:date>2015-05-10T10:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905629#M1006840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nuno, thank you very much it ran smoothly, I really appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the /10 stand for? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 18:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905629#M1006840</guid>
      <dc:creator />
      <dc:date>2015-05-11T18:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905630#M1006844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already did Massimiliano, but did not work. Thanks for your help though &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nuno's approach worked perfectly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 18:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905630#M1006844</guid>
      <dc:creator />
      <dc:date>2015-05-11T18:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905631#M1006847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I can't take all the credit for the formula, because it's adapted from &lt;A href="https://community.qlik.com/qlik-users/21667"&gt;cleveranjos&lt;/A&gt;‌.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The /10 is only to get it in a small factor that the second sort doesn't mess up the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Nuno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 10:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905631#M1006847</guid>
      <dc:creator />
      <dc:date>2015-05-12T10:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905632#M1006849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nuno. I have another question for you. I just created a backorder app:&lt;/P&gt;&lt;P&gt;Our ideal billing process is for every Cust PO&amp;nbsp; one invoice is created, however that is not happening and my App is showing unreal BO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;CustPO: 0029075 is related with 2 invoices: SI015361 and SI015362. This causes that the report show unreal BO, for example the first LineNo_"200000" on the report has $1,706 on PO Amount, but 0 invoiced, meaning that the line is consider as a BO, however the second row same item and same &lt;SPAN style="font-size: 13.3333330154419px;"&gt; LineNo_"200000" &lt;/SPAN&gt;show &lt;SPAN style="font-size: 13.3333330154419px;"&gt;$1,706 on PO Amount and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;$1,706 &lt;/SPAN&gt;invoiced. Hence the first line it is not a BO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="La Bodega.JPG" class="jive-image image-1" src="/legacyfs/online/86582_La Bodega.JPG" style="height: 252px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt; I think that writing an IF statement on the script can be a good approach to &lt;SPAN style="text-decoration: underline;"&gt;not show&lt;/SPAN&gt; duplicated keys, or even better firstsortedvalue, since I need to show the value that has Invoiced amount and prevent the unreal BO, but I do not know how to do it. Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="89"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="89"&gt;KDup&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;0029075|200000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;0029075|200000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;0029075|290000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 16:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905632#M1006849</guid>
      <dc:creator />
      <dc:date>2015-05-14T16:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905633#M1006850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at you data I would just do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;where Invoiced (1st column) = 'Invoiced'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;where Invoiced (11th column) &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of those should remove the duplications. depending on the rule you prefer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstortedvalue or other more complicated solutions are only necessary if your request is more complex than I understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Nuno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 10:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905633#M1006850</guid>
      <dc:creator />
      <dc:date>2015-05-15T10:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905634#M1006851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nuno, thanks you very very much for the tip, however I still need to Show the Invoiced=(backorder) on the first approach and on the second there can be situations where there is 0 on the eleven column meaning that there was zero inventory hence a BO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to use de Dup key that I created with&amp;nbsp; WHERE but the result it is not correct, this is part of the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Help to create a concatenate field from diferent tables and filter duplicated Backorders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BODdupTemp:&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice As Invoice,&lt;/P&gt;&lt;P&gt; "#CustPO" As KCustPO&lt;/P&gt;&lt;P&gt;Resident SalesInvoice;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Invoice As Invoice,&lt;/P&gt;&lt;P&gt; "Line No_" As KLineNo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident SalesInvoiceline;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesInvoiceline:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;Invoice&amp;amp;'|'&amp;amp;KLineNo AS Key,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; KCustPO&amp;amp;'|'&amp;amp;KLineNo As KDup&lt;/P&gt;&lt;P&gt;Resident BODdupTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where KDup&amp;nbsp;&amp;nbsp; &amp;lt;&amp;gt; KDup; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 15:46:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905634#M1006851</guid>
      <dc:creator />
      <dc:date>2015-05-15T15:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905635#M1006852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Eric. I don't know how to help in this case...but this is a community, there are always people who understand some issues better than others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2015 17:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905635#M1006852</guid>
      <dc:creator />
      <dc:date>2015-05-15T17:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905636#M1006853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't worry thank you very much. &lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 15:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905636#M1006853</guid>
      <dc:creator />
      <dc:date>2015-05-20T15:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905637#M1006854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi Eric,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Are you still looking for the solution? I realise that it's 2 weeks old thread.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;If yes, so you don't mind getting either value when there's clash?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;www.QlikShare.com&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 May 2015 09:42:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905637#M1006854</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2015-05-31T09:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905638#M1006855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak, thanks for the following up, the first question has been answered, but I am struggling on the second one, any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I just created a backorder app:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Our ideal billing process is for every Cust PO&amp;nbsp; one invoice is created, however that is not happening and my App is showing unreal BO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Example:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;CustPO: 0029075 is related with 2 invoices: SI015361 and SI015362. This causes that the report show unreal BO, for example the first LineNo_"200000" on the report has $1,706 on PO Amount, but 0 invoiced, meaning that the line is consider as a BO, however the second row same item and same &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;LineNo_"200000" &lt;/SPAN&gt;show &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;$1,706 on PO Amount and &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;$1,706 &lt;/SPAN&gt;invoiced. Hence the first line it is not a BO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 18:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/905638#M1006855</guid>
      <dc:creator />
      <dc:date>2015-06-02T18:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Firstsortedvalue returns Null</title>
      <link>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/1582371#M1006856</link>
      <description>&lt;P&gt;Hola Nuno me podrías ayudar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No quiero nulos ni vacíos&amp;nbsp;&lt;/P&gt;&lt;P&gt;= FirstSortedValue(Cliente,Aggr(sum(if(Televisora='TVMAS' and Año='2019',Value))/SUM(IF(Año='2019',Value)),Cliente))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Saludos!!!&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 17:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Firstsortedvalue-returns-Null/m-p/1582371#M1006856</guid>
      <dc:creator>Valentino_Rossi_46</dc:creator>
      <dc:date>2019-05-20T17:32:18Z</dc:date>
    </item>
  </channel>
</rss>

