<?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: How do you mimic SQL Dense_Rank function using set analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408202#M803530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not an expression. It is set in a Web UI and will always match one of the groupID values shown in the example data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Nov 2017 16:22:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-17T16:22:08Z</dc:date>
    <item>
      <title>How do you mimic SQL Dense_Rank function using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408197#M803525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following expression to rank average values by group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only({$&amp;lt;OrganizationID={$(vOrganizationID)}&amp;gt;} aggr(Rank(TOTAL -Avg(value)), group))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works except for when the average of the value is the same. It assigns the values the same rank but skips numbers after that. Here is an example:&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like instead have it look like this:&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me out with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408197#M803525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do you mimic SQL Dense_Rank function using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408198#M803526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share some sample data to look into?&lt;/P&gt;&lt;P&gt;May be check here if this helps:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/146411" title="https://community.qlikview.com/thread/146411"&gt;Dense Rank in QlikView | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 22:36:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408198#M803526</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-11-16T22:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you mimic SQL Dense_Rank function using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408199#M803527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am updating the expression because the one I posted is incorrect. The correct expression is as follows:&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: 13px;"&gt;=Only({$&amp;lt;goupID={$(vGroupID)}&amp;gt;} aggr(Rank(TOTAL -Avg(value)), groupID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sorry for the confusion. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 15:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408199#M803527</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-17T15:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do you mimic SQL Dense_Rank function using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408200#M803528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what the example data would look like. I am calculating the average of the value field and returning the rank of the groupID that is set in the vGroupID variable based on the average. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;groupID,value&lt;/P&gt;&lt;P&gt;1,100&lt;/P&gt;&lt;P&gt;1,0&lt;/P&gt;&lt;P&gt;1,100&lt;/P&gt;&lt;P&gt;2,0&lt;/P&gt;&lt;P&gt;2,0&lt;/P&gt;&lt;P&gt;2,100&lt;/P&gt;&lt;P&gt;3,100&lt;/P&gt;&lt;P&gt;3,0&lt;/P&gt;&lt;P&gt;3,100&lt;/P&gt;&lt;P&gt;4,100&lt;/P&gt;&lt;P&gt;4,100&lt;/P&gt;&lt;P&gt;4,100&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 15:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408200#M803528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-17T15:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do you mimic SQL Dense_Rank function using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408201#M803529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share your variable expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 16:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408201#M803529</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-11-17T16:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do you mimic SQL Dense_Rank function using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408202#M803530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not an expression. It is set in a Web UI and will always match one of the groupID values shown in the example data. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 16:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408202#M803530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-17T16:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do you mimic SQL Dense_Rank function using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408203#M803531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Vishwarath, just wondering if you had any luck solving this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 15:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408203#M803531</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-27T15:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you mimic SQL Dense_Rank function using set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408204#M803532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sorry was away could not work on this. Will look into it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2017 15:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-you-mimic-SQL-Dense-Rank-function-using-set-analysis/m-p/1408204#M803532</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-11-27T15:28:09Z</dc:date>
    </item>
  </channel>
</rss>

