<?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 to use the rank argument in the Max() function when there are duplicates in the data set in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664202#M155195</link>
    <description>&lt;P&gt;Sorry for the confusion. Yes, I know how to sum up column "&lt;SPAN&gt;Adding Column 1 to Column 2&lt;/SPAN&gt;".&amp;nbsp; What I do not know is how to get to column "&lt;SPAN&gt;Adding Column 1 to Column 2".&amp;nbsp; I want to be able to come up with a way of adding the 1st num to the 10th num, 2nd to the 9th, 3rd to the 8th and so on. If that is still confusing essentially what I want is for someone to use this data set,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Data:
Load * Inline [
Number
1
2
2
2
4
4
5
6
6
8 ];&lt;/PRE&gt;&lt;P&gt;and get this result&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Column A&lt;/TD&gt;&lt;TD&gt;Column A in Reverse order&lt;/TD&gt;&lt;TD&gt;Adding Column 1 to Column 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;without any manipulation in the script. the only thing you are allowed to do in script is to load the data. The table you are to compute it all in charts. That's the challenge.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JF&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2020 17:45:07 GMT</pubDate>
    <dc:creator>jorgett</dc:creator>
    <dc:date>2020-01-09T17:45:07Z</dc:date>
    <item>
      <title>How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664160#M155172</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;Say I have the following data set called "Data": 1, 2, 2, 2, 4, 4, 5, 6, 6, 8.&lt;/P&gt;&lt;P&gt;When I use Max(Data, 1) I get 8. Max(Data, 2) = 6, BUT Max(Data, 3) = 5. This makes sense, but I wanted Max(Data,3) to equal to 6 since that is the next number in the sequence and for Max(Data, 4) = 5, Max(Data, 5) = 4 and so on. If there's&amp;nbsp; no way around this, do you have any idea of how I can go through the data set from the largest value to the lowest value without ignoring the duplicate values? Doing this in script is not an option for what I am doing and rowno() does not apply either.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JF&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664160#M155172</guid>
      <dc:creator>jorgett</dc:creator>
      <dc:date>2024-11-16T01:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664166#M155174</link>
      <description>&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;can u share some sample data with all the fields in that dataset&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664166#M155174</guid>
      <dc:creator>Kashyap_R</dc:creator>
      <dc:date>2020-01-09T16:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664167#M155175</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Data:
Load * Inline [
Number
1
2
2
2
4
4
5
6
6
8 ];

Final:
NoConcatenate
Load *,
     RowNo() as Rank
Resident Data
Order by Number desc;

Drop Table Data;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664167#M155175</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-09T16:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664168#M155176</link>
      <description>&lt;P&gt;Doing this in script is not an option for me. I wanted to create a KPI where I will be adding the 1st number to the 10th number, then add the 2nd to the 9th, 3rd to 8th, 4th to 7th, 5th to 6th, 6th to 5th, 7th to 4th and so on. After I have that column, I will sum it all up to get my KPI. Here's an example.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Column A&lt;/TD&gt;&lt;TD&gt;Column A in Reverse order&lt;/TD&gt;&lt;TD&gt;Adding Column 1 to Column 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My KPI would give me the following: 9+8+8+7+8+8+7+8+8+9 = 80. The number 80 is what my customer is interested in. Again, doing this calculation in script is not an option for me. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664168#M155176</guid>
      <dc:creator>jorgett</dc:creator>
      <dc:date>2020-01-09T16:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664184#M155188</link>
      <description>&lt;P&gt;I am confused and not sure what you are trying to achieve, but don't you think that Sum(Column A)*2 will give you that KPI number?&lt;/P&gt;&lt;P&gt;Please post some sample data with expected output for better understanding&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664184#M155188</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-09T16:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664202#M155195</link>
      <description>&lt;P&gt;Sorry for the confusion. Yes, I know how to sum up column "&lt;SPAN&gt;Adding Column 1 to Column 2&lt;/SPAN&gt;".&amp;nbsp; What I do not know is how to get to column "&lt;SPAN&gt;Adding Column 1 to Column 2".&amp;nbsp; I want to be able to come up with a way of adding the 1st num to the 10th num, 2nd to the 9th, 3rd to the 8th and so on. If that is still confusing essentially what I want is for someone to use this data set,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Data:
Load * Inline [
Number
1
2
2
2
4
4
5
6
6
8 ];&lt;/PRE&gt;&lt;P&gt;and get this result&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Column A&lt;/TD&gt;&lt;TD&gt;Column A in Reverse order&lt;/TD&gt;&lt;TD&gt;Adding Column 1 to Column 2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;without any manipulation in the script. the only thing you are allowed to do in script is to load the data. The table you are to compute it all in charts. That's the challenge.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JF&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 17:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664202#M155195</guid>
      <dc:creator>jorgett</dc:creator>
      <dc:date>2020-01-09T17:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664267#M155217</link>
      <description>&lt;P&gt;Do you have a fixed number of values, that is, always 10?&amp;nbsp; Or is the problem more like first+last, (first+1) + (last-1), etc?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 22:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664267#M155217</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-01-09T22:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664387#M155232</link>
      <description>&lt;P&gt;I think you could use something like this:&lt;/P&gt;&lt;P&gt;= rangesum(pick(1, $(=concat(Data, chr(44), -Data))), pick(10, $(=concat(Data, chr(44), -Data))))&lt;/P&gt;&lt;P&gt;means to concat all values within a string and then to pick up the wanted ones. I assume that Data isn't just a field else the result of any calculation and then you will need an aggr() to wrap the expression and to apply the needed dimensions.&lt;/P&gt;&lt;P&gt;Like Rob mentioned if there aren't always 10 values you might need further logic to pick the right values from the list.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 09:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664387#M155232</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-01-10T09:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664458#M155247</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;I do not have a fixed number of values; it varies. It is "&lt;SPAN&gt;more like first+last, (first+1) + (last-1), etc".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JF&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 13:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664458#M155247</guid>
      <dc:creator>jorgett</dc:creator>
      <dc:date>2020-01-10T13:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664464#M155249</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;Thank you for your input. The number of values are fixed and I am working with fields. I am trying to perform a calculation with a field. The table here was a visual example of what I am working with since I cannot share the data. The equivalent of&amp;nbsp; the field I am working with is "Column A" in the table in my previous posts. Since I will be doing this calculation with different field, the number of values vary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JF&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 14:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664464#M155249</guid>
      <dc:creator>jorgett</dc:creator>
      <dc:date>2020-01-10T14:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664519#M155262</link>
      <description>&lt;P&gt;I think you could get this view by creating a calculated dimension in a table like:&lt;/P&gt;&lt;P&gt;valueloop(1, count(total [Column A]), 1)&lt;/P&gt;&lt;P&gt;and adding a bit more logic to the already mentioned expression like:&lt;/P&gt;&lt;P&gt;rangesum(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; pick(rowno(total), $(=concat([Column A], chr(44), -[Column A]))),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; pick(count(total [Column A]) - rowno(total) + 1, $(=concat([Column A], chr(44), -[Column A]))))&lt;/P&gt;&lt;P&gt;Further if you want to do it with multiple fields it might be useful to replace the static field-reference of [Column A] with something like: [$(=$Field)] or maybe with an own fieldlist (loaded with a small inline-table) and selecting it with a listbox.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 15:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664519#M155262</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-01-10T15:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664533#M155267</link>
      <description>&lt;P&gt;Marcus,&lt;/P&gt;&lt;P&gt;I noticed when I do&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rangesum(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; pick(rowno(total), $(=concat([Column A], chr(44), -[Column A]))),&lt;BR /&gt;&amp;nbsp;&amp;nbsp; pick(count(total [Column A]) - rowno(total) + 1, $(=concat([Column A], chr(44), -[Column A]))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;, it is ignoring the middle values. The calculation is performed for every other cell, but the ones in the middle (highlighted in red in the table below). It instead gives "-" for their corresponding cell. See table below.&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;4&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;4&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;-&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;4&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;4&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT color="#FF0000"&gt;-&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using your exact code, I copied and paste into it and that's the result it gave me. Thanks for the help.&lt;/P&gt;&lt;P&gt;-JF&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 16:14:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664533#M155267</guid>
      <dc:creator>jorgett</dc:creator>
      <dc:date>2020-01-10T16:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664673#M155317</link>
      <description>&lt;P&gt;It's strange, it shouldn't happens … especially within a rangesum() which treats non-numeric values or NULL as zero so that if there are no numeric parameter the result should be zero, too.&lt;/P&gt;&lt;P&gt;This means that at least one of the parameters is invalid in the given context and prevent a correct working of the entire rangesum() so that they returned NULL (the hyphen is just a replace-char for NULL).&lt;/P&gt;&lt;P&gt;It's difficult to say what's causing this effect … In general I would check if there are NULL's (real NULL's, empty values, spaces, any other kind of invalid values) within the field - I assume it's rather not relevant for this example but it might cause problems and/or &lt;FONT&gt;erroneous&lt;/FONT&gt; respectively unexpected results.&lt;BR /&gt;This means you need to consider strategies how to handle them - this could be the replace of them per NULL variables/mapping or any other kind of replacing (for example with a string like 'Null' or ''NV' or maybe just with 0) or to exclude them from your further calculations (maybe within a set analysis).&lt;/P&gt;&lt;P&gt;More likely seems to be that the pick-index failed in any way - especially if there is more than a single dimension in the table and/or there are conditions applied on the dimensions and/or there are further selections within the application. In all these cases need the rowno(total) and the count() separately checked if they return the expected values. If not it could become difficult to adjust them maybe further set analysis and/or aggr() could be used - but easier would be to simplify the objects/logics.&lt;/P&gt;&lt;P&gt;Another thought goes to the formatting of the fieldvalues - if they are different to the default number-format and/or this has a comma as decimal-delimiter it's troublesome. Therefore I suggest to check this, too and to apply some of the following approaches:&lt;/P&gt;&lt;P&gt;alt(num(floor(num#(keepchar(trim([Column A]), '0123456789,.'), 'ConvertFormat')), 'OutPutFormat'), 0)&lt;/P&gt;&lt;P&gt;to ensure a certain format/data-type.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2020 11:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1664673#M155317</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-01-11T11:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the rank argument in the Max() function when there are duplicates in the data set</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1665135#M155473</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;My apologies. I checked your code again and it is working fine. I was the one who copied it incorrectly. Thank you for your help! It's greatly appreciated.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;JF&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 16:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/How-to-use-the-rank-argument-in-the-Max-function-when-there-are/m-p/1665135#M155473</guid>
      <dc:creator>jorgett</dc:creator>
      <dc:date>2020-01-13T16:35:58Z</dc:date>
    </item>
  </channel>
</rss>

