<?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 get these two values from a table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091186#M362951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this..&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;concat(If(Aggr(Rank(Sum({$&amp;lt;LineSalesAmount=-Null&amp;gt;}LineSalesAmount)),SalesPerson)&amp;lt;=5,SalesPerson))&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;Edit:&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;Above expression will list out all the sales person names in Text box&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 13:06:28 GMT</pubDate>
    <dc:creator>PradeepReddy</dc:creator>
    <dc:date>2016-02-10T13:06:28Z</dc:date>
    <item>
      <title>How to get these two values from a table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091185#M362950</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 have the following straight table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114163_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Dimension expression is:&lt;/P&gt;&lt;P&gt;=If(Aggr(Rank(Sum({$&amp;lt;LineSalesAmount=-Null&amp;gt;}LineSalesAmount)),SalesPerson)&amp;lt;=5,SalesPerson)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression tab expression is:&lt;/P&gt;&lt;P&gt;Sum(OrderRecordCounter)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the table created above I would like to get just the name of the sales person with the most orders in a text object and in another text object their orders value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the screenshot above it would be Rob Carsson in text object 1 and the value 1208 in text object two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to create an expression for this please? I have tried to the best of my knowledge but cannot figure out how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 13:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091185#M362950</guid>
      <dc:creator>jblomqvist</dc:creator>
      <dc:date>2016-02-10T13:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get these two values from a table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091186#M362951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like this..&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;concat(If(Aggr(Rank(Sum({$&amp;lt;LineSalesAmount=-Null&amp;gt;}LineSalesAmount)),SalesPerson)&amp;lt;=5,SalesPerson))&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;Edit:&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;Above expression will list out all the sales person names in Text box&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 13:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091186#M362951</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2016-02-10T13:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get these two values from a table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091187#M362952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(SalesPerson, -&lt;STRONG style="font-size: 13.3333px;"&gt;Aggr(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{$&amp;lt;LineSalesAmount=-Null&amp;gt;}&lt;/STRONG&gt;OrderRecordCounter), &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;SalesPerson)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxValue&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Aggr(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum(&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{$&amp;lt;LineSalesAmount=-Null&amp;gt;}&lt;/STRONG&gt;OrderRecordCounter), &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;SalesPerson))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 13:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091187#M362952</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-10T13:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get these two values from a table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091188#M362953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for people with most orders in a textbox I think you can look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/blogs/qlikviewdesignblog/2013/02/08/displaying-the-top-salesperson-in-a-textbox" title="https://community.qlikview.com/blogs/qlikviewdesignblog/2013/02/08/displaying-the-top-salesperson-in-a-textbox"&gt;Qlik Design Blog : Displaying the Top Salespers... | Qlik Community&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 13:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091188#M362953</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-02-10T13:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get these two values from a table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091189#M362954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First Text object expression: &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;firstsortedvalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NAME(of sales person column)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; , -&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Orders]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Second test object exp:&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Orders&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hope this will help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 13:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091189#M362954</guid>
      <dc:creator />
      <dc:date>2016-02-10T13:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get these two values from a table?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091190#M362955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... further, your Set Expression is incorrect. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;{$&amp;lt;LineSalesAmount=-Null&amp;gt;}&lt;/STRONG&gt; does not make any sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NULLs are automatically excluded when Sum(LineSalesAmount) is used, so you don't need the Set Expression. Should you anyway want to use a Set expression to exclude NULLs, you could use &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{$&amp;lt;LineSalesAmount={"*"}&amp;gt;}&lt;/STRONG&gt; which will select all possible values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 15:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-these-two-values-from-a-table/m-p/1091190#M362955</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-02-10T15:28:57Z</dc:date>
    </item>
  </channel>
</rss>

