<?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 Set Analysis but with a dimension for answer in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804308#M11155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just starting with Qlik Sense and it's my first message that I leave, so thanks in advance for your help and insight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm making a text box, in which, I would like to show first of all the Highest unit Price paid for an item, followed by the name of the customer who paid that price, the period and year, in which that sale occurred. I got the max(UnitPrice) Ok, but it's the name of customer and date that I can't find. I found the formula Set Analysis when your looking for a measure, but what about the Dimension info related to my max(UnitPrice).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thanks for your help! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80752_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Mar 2015 18:22:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-14T18:22:01Z</dc:date>
    <item>
      <title>Set Analysis but with a dimension for answer</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804308#M11155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just starting with Qlik Sense and it's my first message that I leave, so thanks in advance for your help and insight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm making a text box, in which, I would like to show first of all the Highest unit Price paid for an item, followed by the name of the customer who paid that price, the period and year, in which that sale occurred. I got the max(UnitPrice) Ok, but it's the name of customer and date that I can't find. I found the formula Set Analysis when your looking for a measure, but what about the Dimension info related to my max(UnitPrice).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again thanks for your help! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80752_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2015 18:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804308#M11155</guid>
      <dc:creator />
      <dc:date>2015-03-14T18:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis but with a dimension for answer</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804309#M11156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tremblay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this post out - this for QlikView but luckily expressions and calculations are the same in Sense:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2935"&gt;Displaying the Top Salesperson in a Textbox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it makes sense or your need further directions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2015 00:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804309#M11156</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-15T00:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis but with a dimension for answer</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804310#M11157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a million time Boris!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works!&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2015 06:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804310#M11157</guid>
      <dc:creator />
      <dc:date>2015-03-15T06:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis but with a dimension for answer</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804311#M11158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Boris!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I succeeded with Highest and lowest price to get the country name and MonthYear, but using the same expression, I can't get it for for my highest export in $ as show:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80774_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my expressions for the Country:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstsortedvalue (country, -Aggr(Max[ExpVal],&lt;SPAN style="font-size: 13.3333330154419px;"&gt;country&lt;/SPAN&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // ExpVal = Export Value in US$&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And my expressions for the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;MonthYear&lt;/SPAN&gt; (MM-YYYY):&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstsortedvalue (MonthYear, -Aggr(Max[ExpVal],MonthYear))&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // ExpVal = Export Value in US$&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I also tried with the expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;only(if(aggr(Rank(Sum([Sales Amt])),Salesperson)=1,Salesperson))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f5faf0;"&gt;But I get the same empty result.&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; Thanks for you collaboration!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2015 18:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804311#M11158</guid>
      <dc:creator />
      <dc:date>2015-03-15T18:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis but with a dimension for answer</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804312#M11159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi tremblay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your expression seems to be right, but check what you see if you replace Only with &lt;STRONG&gt;concat(distinct&lt;/STRONG&gt; - I have a suspicion that you get more than one value for some reason and Only will return null in that case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is an expression you can try to see top 3 sales persons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat(distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(&lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp; rank(sum(Sales)),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Salesperson&lt;/P&gt;&lt;P&gt;&amp;nbsp; ) &amp;lt;=3 ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Salesperson&amp;amp;CHR(13)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure that your field names are in correct case - i got burnt many times because of that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 13:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804312#M11159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T13:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis but with a dimension for answer</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804313#M11160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Boris for your insight!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try that ...&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Concerning the case, yes, I got cut too! So I try to cut &amp;amp; Paste as much as possible, but I will double check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 13:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-but-with-a-dimension-for-answer/m-p/804313#M11160</guid>
      <dc:creator />
      <dc:date>2015-03-16T13:53:52Z</dc:date>
    </item>
  </channel>
</rss>

