<?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: Displaying max value in a table column in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2492093#M102140</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/129429"&gt;@GOKULAKANNAN&lt;/a&gt;&amp;nbsp; then below should work&lt;/P&gt;
&lt;P&gt;=FirstSortedValue(distinct attendence,-date)&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2024 15:12:17 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2024-11-11T15:12:17Z</dc:date>
    <item>
      <title>Displaying max value in a table column</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2491773#M102104</link>
      <description>&lt;P&gt;&lt;U&gt;I have a table with columns employee id and their best attendence and current attendence, I want to display in a simple table, first column should be employee id and second column should be his best attendence and third will be current attendence,&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;In this best attendence will be increasing day by day until he takes leave,and if he takes leave then current attendence will come to 0 and start again.&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;Here I need to display distinct employee id and their best attendence and current one, and in this best attemdence should remain same and should not change for any filters, it should always display the maximum of the employee, where as current attendence should display the maximum on that particular date.&lt;/P&gt;
&lt;P&gt;Input table:&lt;/P&gt;
&lt;P&gt;Employee id.&amp;nbsp; &amp;nbsp; Best&amp;nbsp; &amp;nbsp; &amp;nbsp;current&lt;/P&gt;
&lt;P&gt;123.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;48.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 48&lt;/P&gt;
&lt;P&gt;123.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 48.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/P&gt;
&lt;P&gt;123.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 48.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output expectation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Employee id.&amp;nbsp; &amp;nbsp; &amp;nbsp; Best.&amp;nbsp; &amp;nbsp;Current&lt;/P&gt;
&lt;P&gt;123.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;48.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can we achieve this&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 16:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2491773#M102104</guid>
      <dc:creator>GOKULAKANNAN</dc:creator>
      <dc:date>2024-11-08T16:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying max value in a table column</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2491826#M102113</link>
      <description>&lt;P&gt;As you dont have date-timestamp for sorting and figuring out most current record, i used recno to fetch the most current record assuming the last record in the table is the most recent entered record. you can do like below:&lt;/P&gt;
&lt;P&gt;//Backend Solution&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;LOAD *, recno() as sno inline [&lt;BR /&gt;Employee_id, current&lt;BR /&gt;123, 48&lt;BR /&gt;123, 0&lt;BR /&gt;123, 1&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;left join(Data)&lt;BR /&gt;LOAD Employee_id,&lt;BR /&gt;Max(current) as Best,&lt;BR /&gt;FirstSortedValue(current, -sno) as most_current&lt;BR /&gt;RESIDENT Data&lt;BR /&gt;GROUP BY Employee_id;&lt;/P&gt;
&lt;P&gt;//Front End Solution:&lt;BR /&gt;Dim: Employee_ID&lt;/P&gt;
&lt;P&gt;Measure1: Best = Max(total &amp;lt;Employee_id&amp;gt; current)&lt;BR /&gt;Measure2: current = only({$&amp;lt;sno={"$(=max(total &amp;lt;Employee_id&amp;gt; sno))"}&amp;gt;}current)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2491773 - Displaying max value in a table column.PNG" style="width: 836px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174134i6B399C5F0B0409D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2491773 - Displaying max value in a table column.PNG" alt="2491773 - Displaying max value in a table column.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the most current record table is unaffected by any selections like you mentioned.&lt;/P&gt;
&lt;P&gt;on the UI, there are couple other methods, if this works for you proceed with it.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 18:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2491826#M102113</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-11-08T18:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying max value in a table column</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2491835#M102114</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41222"&gt;@Qrishna&lt;/a&gt;&amp;nbsp;for the reply.&lt;/P&gt;
&lt;P&gt;If we are using total then wont it show the same data for other employees, provided table as an example having only 1 emp. What if there are 100 employees. Am trying to do everything in frontend&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 18:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2491835#M102114</guid>
      <dc:creator>GOKULAKANNAN</dc:creator>
      <dc:date>2024-11-08T18:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying max value in a table column</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2491838#M102115</link>
      <description>&lt;P&gt;it should wor but am not sure how yur real table is buillt,&amp;nbsp; if it doesnt work in your table try:&amp;nbsp;&lt;SPAN&gt;Measure2&amp;nbsp;&lt;/SPAN&gt;=FirstSortedValue(current, -sno) . for your understanding i included another epmploee :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2491773 - Displaying max value in a table column(2).PNG" style="width: 849px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174138iA4CA2288BE90FC69/image-size/large?v=v2&amp;amp;px=999" role="button" title="2491773 - Displaying max value in a table column(2).PNG" alt="2491773 - Displaying max value in a table column(2).PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 19:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2491838#M102115</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2024-11-08T19:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying max value in a table column</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2491916#M102120</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/129429"&gt;@GOKULAKANNAN&lt;/a&gt;&amp;nbsp; If your current &amp;amp; Best are direct columns (not measure) then try below with dimension as EmpID&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;Load *&lt;BR /&gt;Inline [&lt;BR /&gt;EmpID, Best,Current&lt;BR /&gt;123,48,0&lt;BR /&gt;123,48,48&lt;BR /&gt;123,48,1&lt;/P&gt;
&lt;P&gt;456,35,0&lt;BR /&gt;456,35,10&lt;BR /&gt;456,35,5 ];&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Best = max(Best)
Current = Min({&amp;lt;Current={"&amp;gt;0"}&amp;gt;}Current)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kushal_Chawda_0-1731266179030.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174160i7C60BE34D1C53786/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kushal_Chawda_0-1731266179030.png" alt="Kushal_Chawda_0-1731266179030.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2024 19:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2491916#M102120</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-11-10T19:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying max value in a table column</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2492091#M102139</link>
      <description>&lt;P&gt;Data is like below,&lt;/P&gt;
&lt;P&gt;Emp_id, emp_name, attendence, date&lt;/P&gt;
&lt;P&gt;1 , gk, 1, 25/11/2024&lt;/P&gt;
&lt;P&gt;1,gk, 2, 26/11/2024&lt;/P&gt;
&lt;P&gt;1,gk,3, 27/11/2024&lt;/P&gt;
&lt;P&gt;1,gk,0,28/11/2024&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If am not selecting any filters, the result should show the recent value of attendence which is 0, else based on selection it should show, lets say if we are selecting 25 and 26 then 2 should be visible which is recent&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 15:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2492091#M102139</guid>
      <dc:creator>GOKULAKANNAN</dc:creator>
      <dc:date>2024-11-11T15:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying max value in a table column</title>
      <link>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2492093#M102140</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/129429"&gt;@GOKULAKANNAN&lt;/a&gt;&amp;nbsp; then below should work&lt;/P&gt;
&lt;P&gt;=FirstSortedValue(distinct attendence,-date)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 15:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Displaying-max-value-in-a-table-column/m-p/2492093#M102140</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2024-11-11T15:12:17Z</dc:date>
    </item>
  </channel>
</rss>

