<?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: Direct discovery with group by clause in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109353#M7501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried, but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Direct query will support FirstSortedValue() function??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2018 11:39:16 GMT</pubDate>
    <dc:creator>jeevays7</dc:creator>
    <dc:date>2018-08-22T11:39:16Z</dc:date>
    <item>
      <title>Direct discovery with group by clause</title>
      <link>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109351#M7499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table in database like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="202"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;FUND&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="74"&gt;Comments&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;ABC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;101&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Test2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im fetching data from this table using DIRECT QUERY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to show the data like below in table chart. the problem is i am not able to show the comments when it has two line for same fund. i need to show the max ID's Comments for each Fund.&lt;/P&gt;&lt;P&gt;Qlik Chart (Output)&amp;nbsp; : &lt;/P&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 138px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;FUND&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Comments&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;100&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Test&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;101&lt;/TD&gt;&lt;TD style="color: #575757; text-align: left; background-color: rgba(0, 0, 0, 0); font-family: arial, helvetica, sans-serif; vertical-align: baseline;"&gt;Test2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do? please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i use Aggr in DIRECT QUERY? but group by is not working in the script using direct query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 08:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109351#M7499</guid>
      <dc:creator>jeevays7</dc:creator>
      <dc:date>2018-08-22T08:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Direct discovery with group by clause</title>
      <link>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109352#M7500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using the Qlik &lt;STRONG&gt;FirstSortedValue&lt;/STRONG&gt;() aggregation function in the chart? You can use the ID as weight parameter to get the the maximum ID's corresponding comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/ChartFunctions/BasicAggregationFunctions/firstsortedvalue.htm" style="font-size: 10pt;" title="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/ChartFunctions/BasicAggregationFunctions/firstsortedvalue.htm"&gt;https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/ChartFunctions/BasicAggregationFunctions/firstsortedva…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also a version of FirstSortedValue() for scripts:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Scripting/AggregationFunctions/firstsorted.htm" title="https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Scripting/AggregationFunctions/firstsorted.htm"&gt;https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Scripting/AggregationFunctions/firstsorted.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 11:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109352#M7500</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-22T11:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Direct discovery with group by clause</title>
      <link>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109353#M7501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried, but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Direct query will support FirstSortedValue() function??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 11:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109353#M7501</guid>
      <dc:creator>jeevays7</dc:creator>
      <dc:date>2018-08-22T11:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Direct discovery with group by clause</title>
      <link>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109354#M7502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try it in your chart/table in a sheet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 12:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109354#M7502</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-22T12:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Direct discovery with group by clause</title>
      <link>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109355#M7503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did, but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is:&lt;/P&gt;&lt;P&gt;FirstSortedValue(Comments,-ID,1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here, the ID and Comments fields are in measure of direct query.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 12:19:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109355#M7503</guid>
      <dc:creator>jeevays7</dc:creator>
      <dc:date>2018-08-22T12:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Direct discovery with group by clause</title>
      <link>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109356#M7504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well - I can't help you then. My advice to you is to look at other ways to integrate with your sources since Direct Discovery is in "maintenance" mode and hasn't been developed or will not be developed further. In light of the limitations of Direct Discover I think other approaches like ODAG and SSE or even frequently used reloads would be the best way for most if not all companies now. Big Data Indexer is something that will come in the Qlik Sense September release also in its first version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 13:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109356#M7504</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-08-22T13:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Direct discovery with group by clause</title>
      <link>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109357#M7505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Thank you so much for your reply's peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Direct-discovery-with-group-by-clause/m-p/109357#M7505</guid>
      <dc:creator>jeevays7</dc:creator>
      <dc:date>2018-08-22T14:09:15Z</dc:date>
    </item>
  </channel>
</rss>

