<?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: Top 10 year analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Top-10-year-analysis/m-p/1410907#M33127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant - thank you Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Aug 2017 14:11:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-16T14:11:24Z</dc:date>
    <item>
      <title>Top 10 year analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Top-10-year-analysis/m-p/1410905#M33125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All - I am trying to get a conceptual grasp of what I think is a set analysis question.&amp;nbsp; I have a sample data set I'm using (baby name frequencies by year from the US Social Security Administration).&amp;nbsp; The data is very simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Name&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Gender&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Frequency&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Mary&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;F&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10987&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Richard&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;M&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11321&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Mary&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;F&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9123&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Richard&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;M&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10873&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Tom&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;M&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7643&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;etc&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;etc&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;etc&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;etc&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like to accomplish is to allow the user to select a year and a gender, find the top 10 baby names for that given year by frequency (or the max of the years if they happen to select multiple years), then display a line chart for those 10 names to show how the frequency has changed for them for the past 10 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can probably guess, I've failed up until this point.&amp;nbsp; If this type of question is answered elsewhere, please feel free to redirect me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a measure to try and capture the male names between a certain date range:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num(Sum({$&amp;lt;[Gender] = {'M'}, [Year]={"&amp;gt;$(=Max(Year)-10) &amp;lt;=$(=Max([Year]))"} &amp;gt;}Frequency),'#,##0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a line chart and restricted the names to the top 10.&amp;nbsp; I picked 2015 as a year anddid not get the intended results so I changed it to a pivot and see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173566_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not quite where I'm headed.&amp;nbsp; I'd like to find the top 10 names from 2015 (the year selected) and show only those 10 trended over the past 10 years.&amp;nbsp; I've got the 10 years part correct but not the grouping logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or direction is appreciated.&amp;nbsp; QVF file is attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 13:47:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Top-10-year-analysis/m-p/1410905#M33125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-16T13:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 year analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Top-10-year-analysis/m-p/1410906#M33126</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;STRONG&gt;num(Sum({&amp;lt;Name = {"=Num(Rank(Sum(Frequency))) &amp;lt; 11"}, [Year]={"&amp;gt;$(=Max(Year)-10) &amp;lt;=$(=Max([Year]))"}&amp;gt;}Frequency),'#,##0')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173579_Capture.PNG" style="height: 296px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 14:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Top-10-year-analysis/m-p/1410906#M33126</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-16T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Top 10 year analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Top-10-year-analysis/m-p/1410907#M33127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant - thank you Sunny!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 14:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Top-10-year-analysis/m-p/1410907#M33127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-16T14:11:24Z</dc:date>
    </item>
  </channel>
</rss>

