<?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: rankings in a text box and straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283363#M402159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried your expressions at home with my own dummy dataset (no data models, fact tables etc), just a plain old excel spreadsheet. Your expressions work with the dummy dataset. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to dig a bit deeper to see what's happening with the model. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Declan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2016 17:46:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-21T17:46:00Z</dc:date>
    <item>
      <title>rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283355#M402151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hope you are well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have a straight table which ranks each company based on the proportion of their new recruits that are female. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have 3 list boxes - Year, Month, Division.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none;" width="801"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="background: #6690BC; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: 1.5pt; text-align: center;"&gt;&lt;SPAN style="color: white; font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;&lt;STRONG&gt;company&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: #6690BC; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: 1.5pt; text-align: center;"&gt;&lt;SPAN style="color: white; font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;&lt;STRONG&gt;proportion female&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background: #6690BC; padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P align="center" style="margin-bottom: 1.5pt; text-align: center;"&gt;&lt;SPAN style="color: white; font-size: 10.0pt; font-family: 'Arial',sans-serif;"&gt;&lt;STRONG&gt;ranking&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: 1.5pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;x&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: 1.5pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;75%&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: 1.5pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: 1.5pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;y&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: 1.5pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;85%&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: 1.5pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: 1.5pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;z&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: 1.5pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;90%&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 1.5pt 1.5pt 1.5pt 1.5pt;" valign="bottom"&gt;&lt;P style="margin-bottom: 1.5pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Firstly, this is the code I use to rank the companies:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;=rank(num(Count({&amp;lt;Gender={'Female'}&amp;gt;}newkey))/Count(newkey),'#,##0.0%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I have 2 questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt; First question:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;The rankings are correctly ordered when changing the year or months. However, when selecting a specific company, let's say x, the ranking reverts to 1 (but overall it is ranked 3). I am aware of the $ , 1-$ and 1. However, if I use {1}, it will then ignore any selections I make with ALL the list boxes. I want it to respect the Year and Month list boxes but still be able to give me the company ranking when it is selected.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Second question:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Let us assume I selected the year 2015 and the month as July. Let us assume, to keep things simple, that the ranking for company Y was 2 (like the straight table).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I’d like to write a code but in a text box that will bring back 2 if I select that specific company (Y) from the list box or straight table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Assuming I selected the year 2015, month, July, and the company Y was ranked 2 in the straight table, I’d like to write a code in a text box which will tell me that the ranking of the company is 2. If I select the company, the text box must not revert to 1 either. It must keep the ranking (2) in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt; I’m struggling to do this ranking in a text box. Please can you help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Kind regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;D&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 10:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283355#M402151</guid>
      <dc:creator />
      <dc:date>2016-11-21T10:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283356#M402152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Try this for straight table expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;=Rank(Count({&amp;lt;Gender={'Female'}&lt;SPAN style="color: #ff0000;"&gt;, Company&lt;/SPAN&gt;&amp;gt;} newkey)/Count(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;Company&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;newkey)) &lt;SPAN style="color: #ff0000;"&gt;* Avg(1)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Try this for text box expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;=Aggr(&lt;/SPAN&gt;Rank(Count({&amp;lt;Gender={'Female'}&lt;SPAN style="color: #ff0000;"&gt;, Company&lt;/SPAN&gt;&amp;gt;} newkey)/Count(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;Company&amp;gt;}&lt;/SPAN&gt;newkey))&lt;SPAN style="color: #ff0000;"&gt;, Company)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 10:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283356#M402152</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-21T10:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283357#M402153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What worked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When selecting a company from the straight table, it kept the original ranking and did not revert to 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What did not work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rankings stay fixed and do not respond to changes to the Year and Month listboxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Company x might be ranked 2 in 2015 but is ranked 3 in 2016. With your expression, it stays fixed at 2 regardless of the listbox selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression did not work and brought back a hyphen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 11:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283357#M402153</guid>
      <dc:creator />
      <dc:date>2016-11-21T11:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283358#M402154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You conclusions about not responding to dates look inconsistent with what I would expect from Sunny's first expression. We may need more information about the data model in your application to help resolve your issue. A small sample qvw illustrating the problem, including the chart and the text box, would help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 11:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283358#M402154</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-21T11:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283359#M402155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The straight table responds and correctly ranks the companies using my expression. If I select a Year or Month from a list box, the straight table updates the rankings accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;=rank(num(Count({&amp;lt;Gender={'Female'}&amp;gt;}newkey))/Count(newkey),'#,##0.0%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Arial, sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: Arial, sans-serif;"&gt;However, if I click on one of the companies, the ranking reverts to 1. Sunny's code solves for this. However, her code is not responsive to the list boxes (Year and Month list boxes respectively). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: Arial, sans-serif;"&gt;In essence, it is very similar to this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: Arial, sans-serif;"&gt;=rank(num(Count({1&amp;lt;Gender={'Female'}&amp;gt;}newkey))/Count(newkey),'#,##0.0%') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: Arial, sans-serif;"&gt;With the exception that Sunny's rankings do not revert to 1 when the company is selected.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: Arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: Arial, sans-serif;"&gt;Going forward, I will look at providing sample qvw's but am hoping this can be resolved without this. This is my first question on the forum and I am still getting used to it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 11:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283359#M402155</guid>
      <dc:creator />
      <dc:date>2016-11-21T11:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283360#M402156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you select company before selecting a year or month? I think it should work based on your selection in year and month. Would you be able to share a sample where it isn't working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 11:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283360#M402156</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-21T11:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283361#M402157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;His code. I am male my friend &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 11:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283361#M402157</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-21T11:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283362#M402158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad. Didn't look at your picture. Just made an assumption &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt; Sorry. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 11:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283362#M402158</guid>
      <dc:creator />
      <dc:date>2016-11-21T11:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283363#M402159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried your expressions at home with my own dummy dataset (no data models, fact tables etc), just a plain old excel spreadsheet. Your expressions work with the dummy dataset. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to dig a bit deeper to see what's happening with the model. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Declan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 17:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283363#M402159</guid>
      <dc:creator />
      <dc:date>2016-11-21T17:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283364#M402160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 01:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283364#M402160</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-22T01:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283365#M402161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the Qlikview version has something to do with it. I've got an older version at home than at work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expressions work in a pivot table but not the straight table (Qlikview version 11.20)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, at home, the same expressions work in a straight table (not at home now so not sure what version but it's an older one).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also your expressions work in the text box, regardless of version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 06:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283365#M402161</guid>
      <dc:creator />
      <dc:date>2016-11-22T06:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283366#M402162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in the straight table also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;=Aggr(&lt;/SPAN&gt;Rank(Count({&amp;lt;Gender={'Female'}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, Company&lt;/SPAN&gt;&amp;gt;} newkey)/Count(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;Company&amp;gt;}&lt;/SPAN&gt;newkey))&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, Company)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 10:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283366#M402162</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-22T10:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283367#M402163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another question. What I did below worked on a pivot table but I can't get it to work on a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us say company X is ranked 6 on a metric, and 4 on another metric. If we add the rankings for company X, we get 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us assume company Y is ranked 5 on a metric and 8 on another metric. If we add the rankings for company Y, we get 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a variable to rank the companies (from lowest to highest) in a pivot table using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(rank(-($(vOverallScore))),Company)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get vOverallScore, I simply took the code for the first metric and added the plus sign &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plus.png" /&gt; and then added the code for the 2nd metric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vOverallScore (variable created):&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Aggr(&lt;/SPAN&gt;Rank(Count({&amp;lt;Gender={'Female'}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, Company&lt;/SPAN&gt;&amp;gt;} newkey)/Count(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;Company&amp;gt;}&lt;/SPAN&gt;newkey))&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, Company)&amp;nbsp; + &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Aggr(&lt;/SPAN&gt;Rank(Count({&amp;lt;Gender={'Female'}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, Company&lt;/SPAN&gt;&amp;gt;} termkey)/Count(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;{&amp;lt;Company&amp;gt;}term&lt;/SPAN&gt;key))&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, Company) &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the pivot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=aggr(rank(-($(vOverallScore))),Company)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;The pivot shows correct rankings. However, it becomes vulnerable to reverting to a ranking of 1 when you select the company. Your code is robust to changes but as soon as I put the + sign, it becomes vulnerable to selections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Perhaps there is another way to do it? and to get it work in a text box?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;BR /&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 12:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283367#M402163</guid>
      <dc:creator />
      <dc:date>2016-11-28T12:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283368#M402164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;STRONG&gt;=&lt;SPAN style="color: #ff0000;"&gt;Only({&amp;lt;Company&amp;gt;}&lt;/SPAN&gt; Aggr(Rank(-($(vOverallScore))),Company)&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 12:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283368#M402164</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-28T12:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283369#M402165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using your code, It brings back 1 for the text box and also 1 for the pivot table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pivot table shows the correct rankings but if you select the company, it reverts to 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 13:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283369#M402165</guid>
      <dc:creator />
      <dc:date>2016-11-28T13:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283370#M402166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be possible to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 13:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283370#M402166</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-28T13:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283371#M402167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we might have to do that. I'll try and provide one tomorrow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 13:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283371#M402167</guid>
      <dc:creator />
      <dc:date>2016-11-28T13:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283372#M402168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I got it!&amp;nbsp; Made up a sample qvw:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(rank((rank(sum({&amp;lt;Company&amp;gt;}[Product A]),Company) + rank(sum({&amp;lt;Company&amp;gt;}[Product B]),Company))),Company)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will share tomorrow. Can't share on my home PC. I've got personal edition at home.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Declan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 17:54:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283372#M402168</guid>
      <dc:creator />
      <dc:date>2016-11-28T17:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283373#M402169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply. But better late than never? Please let me know if you are able to view the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 13:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283373#M402169</guid>
      <dc:creator />
      <dc:date>2016-12-08T13:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: rankings in a text box and straight table</title>
      <link>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283374#M402170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this your achieve solution or are you still looking for help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 13:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rankings-in-a-text-box-and-straight-table/m-p/1283374#M402170</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-08T13:53:15Z</dc:date>
    </item>
  </channel>
</rss>

