<?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: Aggr/First Sorted Order Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-First-Sorted-Order-Question/m-p/473566#M176912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also thought about adding a field at load time which holds a bool value indicating whether or not each individual number has multiple plans assigned to it. Is that possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jun 2013 19:37:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-14T19:37:45Z</dc:date>
    <item>
      <title>Aggr/First Sorted Order Question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-First-Sorted-Order-Question/m-p/473565#M176911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm dealing with cell phone data and I'd like to show: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) of the mobile plans that have changed in the last X months, display the previous and current plan, and &lt;/P&gt;&lt;P&gt;2.) of the mobile plans that have changed in the last X months, display previous cost and current cost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field names I use/will be needed are:&lt;/P&gt;&lt;P&gt;PhoneLineNumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UserName&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthlyCost&amp;nbsp;&amp;nbsp; PlanName&amp;nbsp;&amp;nbsp;&amp;nbsp; PlanDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to mess around with calculated dimensions (to show the "of the mobile plans that have changed in the last X months" portion), and I have come up with this (still doesn't account for time, only plans that have EVER changed):&lt;/P&gt;&lt;P&gt;=if(aggr(Count(DISTINCT PlanName), PhoneLineNumber) &amp;gt; 1, PhoneLineNumber, Null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to the calculated dimension, I need to show what the actual previous/current plan name and cost are. I think this will require a FirstSortedOrder() function to tell the abstract that I want the most recent plan or cost, and the most recent before that. Something like:&lt;/P&gt;&lt;P&gt;=FirstSortedValue(PlanDate, PlanName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, my calculated dimension isn't working, so my expression is also broken. Is this the way I should be going about the 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>Fri, 14 Jun 2013 19:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-First-Sorted-Order-Question/m-p/473565#M176911</guid>
      <dc:creator />
      <dc:date>2013-06-14T19:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr/First Sorted Order Question</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-First-Sorted-Order-Question/m-p/473566#M176912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also thought about adding a field at load time which holds a bool value indicating whether or not each individual number has multiple plans assigned to it. Is that possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 19:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-First-Sorted-Order-Question/m-p/473566#M176912</guid>
      <dc:creator />
      <dc:date>2013-06-14T19:37:45Z</dc:date>
    </item>
  </channel>
</rss>

