<?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 How to catch a field? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263788#M99193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, my name is Ben-hur, i'm from Brazil and my english is very bad, but i will try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one table with 2 fields: Sales, Name of Country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a text box, i want to show a name of the Country with more sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use AGGR, but it failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2012 19:26:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-10T19:26:36Z</dc:date>
    <item>
      <title>How to catch a field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263788#M99193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, my name is Ben-hur, i'm from Brazil and my english is very bad, but i will try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one table with 2 fields: Sales, Name of Country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a text box, i want to show a name of the Country with more sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use AGGR, but it failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 19:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263788#M99193</guid>
      <dc:creator />
      <dc:date>2012-01-10T19:26:36Z</dc:date>
    </item>
    <item>
      <title>How to catch a field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263789#M99194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben Hur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you don't have countries with identical maximum sales, you could use as expression in a text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue([Name of Country], -Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 19:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263789#M99194</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-10T19:34:48Z</dc:date>
    </item>
    <item>
      <title>How to catch a field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263790#M99195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben Hur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&amp;nbsp; FirstSortedValue(&amp;nbsp;&amp;nbsp;&amp;nbsp; Country ,&amp;nbsp; -Sales )&amp;nbsp;&amp;nbsp; it gives you the county where the Sales are the greater. I use the '-' to find the greater.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 19:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263790#M99195</guid>
      <dc:creator />
      <dc:date>2012-01-10T19:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to catch a field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263791#M99196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, sorry for this new question, but we found other problem, now in other function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to show the name of Produtc with max Sum(Sales), i tried to use the same method, but it showed skewed data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= FirstSortedValue(Product, -Sales) &amp;amp; '\n' &amp;amp;&lt;/P&gt;&lt;P&gt;Num(sum({&amp;lt;Product= {'$(= FirstSortedValue(Product, -Sales))'}&amp;gt;}Sales), 'R$ #.##0,00')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Result: Finnish Swimsuit $ 6,042.60&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= FirstSortedValue(Product, -Sales) &amp;amp; '\n' &amp;amp;&lt;/P&gt;&lt;P&gt;Num(Max(Aggr(Sum(Sales), Product)), 'R$ #.##0,00')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Result: Finnish Swimsuit $ 13,261.61&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This last sample brought the correct value, but the product is wrong. The correct product with this sales is Riviera Swimsuit.&lt;EM&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i do this new expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 11:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263791#M99196</guid>
      <dc:creator />
      <dc:date>2012-01-12T11:00:11Z</dc:date>
    </item>
    <item>
      <title>How to catch a field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263792#M99197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi BenHur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue(&amp;nbsp; Product , - Aggr( Sum(Sales) , Product))&amp;nbsp; &amp;amp;&amp;nbsp; '&amp;nbsp; ' &amp;amp;&amp;nbsp;&amp;nbsp; Max(Aggr( Sum(Sales) , Product))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;JJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2012 19:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263792#M99197</guid>
      <dc:creator />
      <dc:date>2012-01-12T19:30:55Z</dc:date>
    </item>
    <item>
      <title>How to catch a field?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263793#M99198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works perfectly! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 11:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-catch-a-field/m-p/263793#M99198</guid>
      <dc:creator />
      <dc:date>2012-01-13T11:55:58Z</dc:date>
    </item>
  </channel>
</rss>

