<?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 in Line Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533377#M480628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I can't attach the file. Work stuff.&lt;/P&gt;&lt;P&gt;I'm really a beginner to this -- just learning set analysis now.&lt;/P&gt;&lt;P&gt;How should I write the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two dimensions in the line chart--MonthYear and Customer Name. &lt;/P&gt;&lt;P&gt;And one Expression -- the variable of vPremiumRevenue.&lt;/P&gt;&lt;P&gt;It's very simple right now, just showing each Customer's revenue per month/year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything else i could do instead of upload the file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Nov 2013 19:32:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-15T19:32:39Z</dc:date>
    <item>
      <title>FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533373#M480624</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'm trying to use this function to retrieve the firstsortedvalue of revenue expression, in a line chart, with Date and Customer dimensions.&lt;/P&gt;&lt;P&gt;Basically, I want the value to be the first one shown in the chart with respect to the other parameters chosen. &lt;/P&gt;&lt;P&gt;The overall idea here is to divide each month's revenue by the &lt;STRONG&gt;first sorted value's&lt;/STRONG&gt; revenue, to achieve % change. &lt;/P&gt;&lt;P&gt;But I can't get the firstsortedvalue to work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my syntax, which clearly has problems because it does not retrieve any data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;EM&gt;&lt;STRONG&gt;$(vPremiumRevenue)&lt;/STRONG&gt;&lt;/EM&gt; / &lt;SPAN style="color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;(&lt;EM&gt;&lt;STRONG&gt;$(vPremiumRevenue)&lt;/STRONG&gt;&lt;/EM&gt;, &lt;SPAN style="color: #800000;"&gt;[MonthYear], [Customer Name]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what I'm doing wrong here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 16:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533373#M480624</guid>
      <dc:creator />
      <dc:date>2013-11-15T16:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533374#M480625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, it retrieves data, but not anything for the firstsortedvalue. It only retrieves the actual &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(vPremiumRevenue).&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 16:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533374#M480625</guid>
      <dc:creator />
      <dc:date>2013-11-15T16:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533375#M480626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FirstSortedValue expects 3 parameters&lt;/P&gt;&lt;P&gt;1) Value to be sorted&lt;/P&gt;&lt;P&gt;2) Weight of sorting&lt;/P&gt;&lt;P&gt;3) Ranking (1,2,3...)&lt;/P&gt;&lt;P&gt;You´re passing Customer Name as ranking parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another point is if two values share same weight,NULL is returned, you have to choose a unique weight (maybe adding another field)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533375#M480626</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-15T17:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533376#M480627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your expression looks wrong in terms of FirstSortedValue.&lt;/P&gt;&lt;P&gt;If possible, please attach your file for better solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 17:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533376#M480627</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-11-15T17:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533377#M480628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I can't attach the file. Work stuff.&lt;/P&gt;&lt;P&gt;I'm really a beginner to this -- just learning set analysis now.&lt;/P&gt;&lt;P&gt;How should I write the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two dimensions in the line chart--MonthYear and Customer Name. &lt;/P&gt;&lt;P&gt;And one Expression -- the variable of vPremiumRevenue.&lt;/P&gt;&lt;P&gt;It's very simple right now, just showing each Customer's revenue per month/year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything else i could do instead of upload the file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 19:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533377#M480628</guid>
      <dc:creator />
      <dc:date>2013-11-15T19:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533378#M480629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What output you want? Can you give one example in excel or table with sample data...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 19:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533378#M480629</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-11-15T19:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533379#M480630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you expect? Maybe Max() or Min()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 19:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533379#M480630</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-15T19:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533380#M480631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the first value, TOP(&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;$(vPremiumRevenue)&lt;/STRONG&gt;&lt;/EM&gt;) will retrieve it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 19:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533380#M480631</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-15T19:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533381#M480632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please have a look at this blog post.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="http://qvdesign.wordpress.com/2012/05/09/the-indexed-time-series-chart-the-forgotten-technique-at-least-by-most-qlikview-developers/"&gt;http://qvdesign.wordpress.com/2012/05/09/the-indexed-time-series-chart-the-forgotten-technique-at-least-by-most-qlikview-developers/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 19:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533381#M480632</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-11-15T19:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533382#M480633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://us.demo.qlik.com/QvAJAXZfc/opendoc.htm?document=qvdocs%2FFinancial%20Stock%20Analysis.qvw&amp;amp;host=Demo11" title="http://us.demo.qlik.com/QvAJAXZfc/opendoc.htm?document=qvdocs%2FFinancial%20Stock%20Analysis.qvw&amp;amp;host=Demo11"&gt;QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This demo file has a good example of what I'm looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's really Revenue % Change over time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So If the User selects 2013, and Jan-Dec,&amp;nbsp; the chart will use January's Revenue as the firstsortedvalue, and the expression will divide each subsuquent calculation of revenue by that number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example: &lt;/P&gt;&lt;P&gt;ABC, Co &lt;/P&gt;&lt;P&gt;Jan revenue = $150&lt;/P&gt;&lt;P&gt;Feb Revenue = $100&lt;/P&gt;&lt;P&gt;Mar Revenue = $200&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the line chart, ABC Co. would show 100% for Jan,&amp;nbsp;&amp;nbsp; 67% for Feb, and 133% for March.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feb and March calculations should be relative to the firstsortedvalue, which is the Jan revenue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if i'm explaining this very well. But the linked doc shows it very close to what i need to achieve.&lt;/P&gt;&lt;P&gt;Thanks for the replies. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 19:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533382#M480633</guid>
      <dc:creator />
      <dc:date>2013-11-15T19:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533383#M480634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="RevenueChangeSample.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/49075_RevenueChangeSample.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Here's an Excel example of what I'm trying to achieve.&lt;/P&gt;&lt;P&gt;Imagine here that the user had selected Months of Jan-Jun. This would be the output. &lt;/P&gt;&lt;P&gt;Jan is always 100% (1), while the next months are the % up or down the revenue amount is compared to Jan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 21:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533383#M480634</guid>
      <dc:creator />
      <dc:date>2013-11-15T21:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533384#M480635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And this would be the output if you selected Feb-Jun.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="RevenueChangeSample2.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/49087_RevenueChangeSample2.jpg" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 22:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533384#M480635</guid>
      <dc:creator />
      <dc:date>2013-11-15T22:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533385#M480636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It´s not elegant, but seems to work,&lt;/P&gt;&lt;P&gt;Check if fits your needs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2013 00:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533385#M480636</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2013-11-16T00:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533386#M480637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Firstly, I want to say thanks for the sample. Yours works perfectly.&lt;/P&gt;&lt;P&gt;I haven't been able to replicate it in my environment though.&lt;/P&gt;&lt;P&gt;Not sure why. Below is my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My line graph expression:&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;=&lt;SPAN style="color: #800000;"&gt;MonthYear&lt;/SPAN&gt;,&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;&lt;STRONG&gt;$(=vPremiumRevenue)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;))/&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month={"$(=(min(date(MonthYear)),'MMM-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;YYYY'))"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;&lt;STRONG&gt;$=(vPremiumRevenue)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #808080;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="color: #808080;"&gt;vPremiumRevenue&lt;/STRONG&gt;&lt;/EM&gt; is a set analysis variable defined as:&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;TAMSFeeType&lt;/SPAN&gt; = {'TAMSRF'}, &lt;SPAN style="color: #800000;"&gt;CustomerSource&lt;/SPAN&gt;={'TAMS'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;[GP Credit Amount]&lt;/SPAN&gt;-&lt;SPAN style="color: #800000;"&gt;[GP Debit Amount]&lt;/SPAN&gt;) +&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;TAMSFeeType&lt;/SPAN&gt; = {'TAMSAF'}, &lt;SPAN style="color: #800000;"&gt;CustomerSource&lt;/SPAN&gt;={'TAMS'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;[GP Credit Amount]&lt;/SPAN&gt;-&lt;SPAN style="color: #800000;"&gt;[GP Debit Amount]&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;MonthYear&lt;/SPAN&gt; is formatted as follows: Jan-2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, I'm a beginner here, and haven't quite grasped some of the syntax or when to use $ and =.&lt;/P&gt;&lt;P&gt;Hopefully this makes sense and you could guide me in the right direction.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 16:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533386#M480637</guid>
      <dc:creator />
      <dc:date>2013-11-22T16:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533387#M480638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif'; font-weight: inherit;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif'; font-weight: inherit;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif'; font-weight: inherit;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif'; font-weight: inherit;"&gt;MonthYear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="color: gray; font-size: 10.0pt; font-family: 'inherit','serif';"&gt;$(vPremiumRevenue)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;))/&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif'; font-weight: inherit;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif'; font-weight: inherit;"&gt;Month={"$(=(min(date(MonthYear)),'MMM-&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="color: maroon; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif'; font-weight: inherit;"&gt;YYYY'))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="color: gray; font-size: 10.0pt; font-family: 'inherit','serif';"&gt;$(vPremiumRevenue)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 16:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533387#M480638</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-11-22T16:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533388#M480639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That didn't work either. The problem seems to be partially in the first statement, where it says if(Month=MonthYear).&lt;/P&gt;&lt;P&gt;Those two fields are formatted differently. If I change it to MonthYear=MonthYear, I get data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, i am still unable to obtain the revenue for the first selected MonthYear.&lt;/P&gt;&lt;P&gt;This expression always returns the sum of &lt;STRONG&gt;all&lt;/STRONG&gt; of the selected months' revenue, instead of just the&lt;STRONG&gt; first&lt;/STRONG&gt; selected month's revenue.&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;MonthYear&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"$(=(min(MonthYear),'MMM-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;YYYY'))"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;&lt;STRONG&gt;$(vPremiumRevenue)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;It does the same thing if I change the variable at the end to just &lt;EM&gt;&lt;STRONG&gt;vPremiumRevenue &lt;/STRONG&gt;&lt;/EM&gt;w/o the&lt;EM&gt; &lt;STRONG&gt;$...&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what I'm doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 17:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533388#M480639</guid>
      <dc:creator />
      <dc:date>2013-11-22T17:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533389#M480640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the value of Month and MonthYear&lt;/P&gt;&lt;P&gt;Is it 'Jan', 'Feb',&lt;/P&gt;&lt;P&gt;'Jan 2013', 'Feb 2013' ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you need to convert MonthYear every time by &lt;/P&gt;&lt;P&gt;=Date(MonthYear, 'MMM')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 17:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533389#M480640</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-11-22T17:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533390#M480641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://michaelandqlikview.blogspot.com/2011/04/total-and-aggr-in-chart-expression.html" title="http://michaelandqlikview.blogspot.com/2011/04/total-and-aggr-in-chart-expression.html"&gt;Michael in Qlikview: TOTAL and AGGR in chart expression&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to say thanks to everyone who helped me out with this. I finally got a working version for my data model.&lt;/P&gt;&lt;P&gt;I managed to find a thorough explanation and example at the above link, in case anyone else is looking to do this sort of thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 16:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-in-Line-Chart/m-p/533390#M480641</guid>
      <dc:creator />
      <dc:date>2013-11-25T16:09:17Z</dc:date>
    </item>
  </channel>
</rss>

