<?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: firstsorted value in if isnull function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1570655#M742420</link>
    <description>Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;I Forgot to mentioned that we have two pricing category and for this Specific Requirement to get Purchase Rate we need to check only for Price 1 with all combination.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
    <pubDate>Wed, 17 Apr 2019 16:29:56 GMT</pubDate>
    <dc:creator>anisha_nan</dc:creator>
    <dc:date>2019-04-17T16:29:56Z</dc:date>
    <item>
      <title>firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569254#M742408</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the straight table i need to display project name,date,id and Purchase rate&lt;/P&gt;&lt;P&gt;1. I have requirement to get latest Purchase Rate on the basis of date for the particular Project.&lt;/P&gt;&lt;P&gt;2. If the Purchase Rate is Null for the specific line item then automatically it should pick the latest Purchase rate on the basis of date wherever the Rate is available .&lt;/P&gt;&lt;P&gt;&amp;nbsp;i have try with above expression :&lt;/P&gt;&lt;P&gt;FirstSortedValue(DISTINCT Project Name,-Aggr(avg([Purchase Rate]),[Project Name])).&lt;/P&gt;&lt;P&gt;Can please correct me on the expression for the above requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569254#M742408</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2024-11-16T03:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569335#M742409</link>
      <description>&lt;P&gt;if I understand your Q correctly try this under isnull&lt;/P&gt;&lt;P&gt;check for syntax&lt;/P&gt;&lt;P&gt;FirstSortedValue(&lt;SPAN&gt;Purchase Rate&lt;/SPAN&gt;,-Aggr(max(if (not isnull(&lt;SPAN&gt;Purchase Rate&lt;/SPAN&gt;),Date)),[Project Name])).&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 11:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569335#M742409</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-04-15T11:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569340#M742410</link>
      <description>Hi ,&lt;BR /&gt;&lt;BR /&gt;Sorry..Expression is not working in straight table.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Mon, 15 Apr 2019 11:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569340#M742410</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2019-04-15T11:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569341#M742411</link>
      <description>&lt;P&gt;To ignore the null values, you could use set analysis, like:&lt;/P&gt;&lt;PRE&gt;FirstSortedValue(DISTINCT &lt;FONT color="#FF0000"&gt;{&amp;lt;[Purchase Rate]={'*'}&amp;gt;} &lt;/FONT&gt;Project Name,&lt;BR /&gt;-Aggr(avg([Purchase Rate]),[Project Name]))&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Apr 2019 11:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569341#M742411</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-04-15T11:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569358#M742412</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/55048"&gt;@anisha_nan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;FirstSortedValue(DISTINCT Project Name,-Aggr(avg([Purchase Rate]),[Project Name])).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Are you looking to display Purchase Rate or Project Name? The above expression will display the project name based on the max Avg Purchase rate among different Project Names. Your description of the problem deviates from your expression. Would you be able to share a sample and provide the expected output from the sample data shared?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 11:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569358#M742412</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-15T11:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569454#M742413</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Sample data send needs the Output in straight table.&lt;BR /&gt;Please find the attached file.&lt;BR /&gt;Do we need to achieve the above requirement at the script level or directly we can add a measure in the straight table in order to achieve Purchase rate.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 13:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569454#M742413</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2019-04-15T13:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569630#M742414</link>
      <description>&lt;P&gt;I am not sure if what is provided is the expected output or the sample data.... if it's either of them, then where is the other one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 19:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569630#M742414</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-15T19:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569744#M742415</link>
      <description>Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;Its sample data and the and in the straight table i am using the same dimension and also mention what needs to consider for Purchase rate calculation.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Apr 2019 05:25:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569744#M742415</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2019-04-16T05:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569892#M742416</link>
      <description>&lt;P&gt;But what are the exact values you are hoping to get? I am not able to translate your statement to numbers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 11:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1569892#M742416</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-16T11:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1570170#M742417</link>
      <description>&lt;P&gt;this works for me(in expression) in straight table provided&lt;/P&gt;&lt;P&gt;a. There is just one entry for latest date for a given project&lt;/P&gt;&lt;P&gt;b. Latest date doesnt have null rate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FirstSortedValue(Rate,-Aggr(max(Date),[Project Name]))&lt;/P&gt;&lt;P&gt;the data set you gave is confusing , it has multiple entries for same date...as per what i understand there will be just one entry for latest date&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 20:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1570170#M742417</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-04-16T20:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1570382#M742418</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the attached Data Set in which i have mentioned what needs to come in the Purchase rate .&lt;/P&gt;&lt;P&gt;I hope its clear now: smileyhappy:&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 09:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1570382#M742418</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2019-04-17T09:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1570464#M742419</link>
      <description>&lt;P&gt;It makes sense most of the time, expect one thing... why do we have Supplier A, Invoice 1001, Pricing category Price1 repeat 2 times for each set of Project Name&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 681px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10407iD03929BF87C3475C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How do I differentiate between these two rows in the each block... why don't we have this as the solution&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 649px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10408i2E0AA4C47919B285/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;600 because the combination for Supplier A, 1001, Price1 has 600 as it's most recent value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 11:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1570464#M742419</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-17T11:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1570655#M742420</link>
      <description>Hi Sunny,&lt;BR /&gt;&lt;BR /&gt;I Forgot to mentioned that we have two pricing category and for this Specific Requirement to get Purchase Rate we need to check only for Price 1 with all combination.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Apr 2019 16:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1570655#M742420</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2019-04-17T16:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1570659#M742421</link>
      <description>&lt;P&gt;Price 1 is what I am looking at &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 16:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1570659#M742421</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-17T16:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1571115#M742422</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find the attached data set and the actual requirement is also mention in it.&lt;/P&gt;&lt;P&gt;Regards&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 14:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1571115#M742422</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2019-04-18T14:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1571132#M742423</link>
      <description>&lt;P&gt;Checking&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 15:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1571132#M742423</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-18T15:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1571191#M742424</link>
      <description>&lt;P&gt;Is this your data?&lt;/P&gt;&lt;PRE&gt;Project Name	Date	Supplier	Invoice No	Pricing category 	Rate
abc	1/2/2018	Supplier A	1001	Purachse Price	100
abc	1/2/2018	Supplier B	1001	Purachse Price	200
abc	1/2/2018	Supplier A	1001	Selling Price	150
abc	1/2/2018	&lt;FONT color="#FF0000"&gt;Supplier A&lt;/FONT&gt;	1001	Selling Price	300
xyz	1/3/2019	Supplier A	1001	Purachse Price	
xyz	1/3/2019	Supplier B	1001	Purachse Price	
xyz	1/3/2019	Supplier A	1001	Selling Price	400
xyz	1/3/2019	&lt;FONT color="#FF0000"&gt;Supplier A&lt;/FONT&gt;	1001	Selling Price	
def	1/5/2018	Supplier A	1001	Purcahse Price	
def	1/5/2018	Supplier B	1001	Purcahse Price	500
def	1/5/2018	Supplier A	1001	Selling Price	600
def	1/5/2018	&lt;FONT color="#FF0000"&gt;Supplier A&lt;/FONT&gt;	1001	Selling Price	700&lt;/PRE&gt;&lt;P&gt;or is this your data&lt;/P&gt;&lt;PRE&gt;Project Name	Date	Supplier	Invoice No	Pricing category 	Rate
abc	1/2/2018	Supplier A	1001	Purachse Price	100
abc	1/2/2018	Supplier B	1001	Purachse Price	200
abc	1/2/2018	Supplier A	1001	Selling Price	150
abc	1/2/2018	&lt;FONT color="#FF0000"&gt;Supplier B&lt;/FONT&gt;	1001	Selling Price	300
xyz	1/3/2019	Supplier A	1001	Purachse Price	
xyz	1/3/2019	Supplier B	1001	Purachse Price	
xyz	1/3/2019	Supplier A	1001	Selling Price	400
xyz	1/3/2019	&lt;FONT color="#FF0000"&gt;Supplier B&lt;/FONT&gt;	1001	Selling Price	
def	1/5/2018	Supplier A	1001	Purcahse Price	
def	1/5/2018	Supplier B	1001	Purcahse Price	500
def	1/5/2018	Supplier A	1001	Selling Price	600
def	1/5/2018	&lt;FONT color="#FF0000"&gt;Supplier B&lt;/FONT&gt;	1001	Selling Price	700&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Apr 2019 17:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1571191#M742424</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-18T17:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: firstsorted value in if isnull function</title>
      <link>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1571300#M742425</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please ignore all the data set which was send earlier and refer only the data set which was send yesterday.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Apr 2019 05:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/firstsorted-value-in-if-isnull-function/m-p/1571300#M742425</guid>
      <dc:creator>anisha_nan</dc:creator>
      <dc:date>2019-04-19T05:59:09Z</dc:date>
    </item>
  </channel>
</rss>

