<?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: Sort by occurrence in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-by-occurrence/m-p/812715#M1026621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommend to use Year and DelayReason as dimensions, and set expression just "=sum(...)", without if statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you want to show only top10 just go to dimension limit tab (in object properties) and select show the 10 bigger values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2015 11:37:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-02T11:37:57Z</dc:date>
    <item>
      <title>Sort by occurrence</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-occurrence/m-p/812714#M1026620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on mockup flight delay data for a uni project. Every delay occurs for a reason (passengers late, plane malfunction, IT problem). I want to show a line chart with the types of delay per month, with a chart next to it displaying a top 10 of reasons (incl. their nr. of occurence). The line chart works fine but the top 10 box doesn't seem to work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using with the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if((Year=('2014') and Carrier = ('Delta')), (Sum([DelayReason])))&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;=if((Year=2014 and Carrier = ('Delta')), (Count([&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DelayReason&lt;/SPAN&gt;])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both seem to return the same result, but when I change Year to 2013 or another Carrier, nothing changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ideal result would be having a box as below for every carrier:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; 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;&lt;STRONG&gt;2013&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Occurence&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;2014&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Occurence&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Passenger late&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Plane malfunction&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Plane malfunction&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;750&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;IT Problem&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;750&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;IT Problem&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Passsenger late&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Bad weather&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;250&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Bad weather&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Congestion air traffic&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Congestion air traffic&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 09:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-occurrence/m-p/812714#M1026620</guid>
      <dc:creator />
      <dc:date>2015-03-02T09:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by occurrence</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-occurrence/m-p/812715#M1026621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommend to use Year and DelayReason as dimensions, and set expression just "=sum(...)", without if statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you want to show only top10 just go to dimension limit tab (in object properties) and select show the 10 bigger values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 11:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-occurrence/m-p/812715#M1026621</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-02T11:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sort by occurrence</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-occurrence/m-p/812716#M1026622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your Dimensions are exactly the same, ie Year and Carrier, so the or statement is being ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Year=, Carrier={'Delta'}&amp;gt;}DelayReason)&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;COUNT(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;{&amp;lt;Year=, Carrier={'Delta'}&amp;gt;}DelayReason) )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 11:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-occurrence/m-p/812716#M1026622</guid>
      <dc:creator />
      <dc:date>2015-03-02T11:38:58Z</dc:date>
    </item>
  </channel>
</rss>

