<?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 Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/242552#M500174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Darrell,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this: As you are using a Text box, Goto Properties-&amp;gt; Caption Check the box Show Caption and in the Title Text box type =COMPETITOR (this would be your actual competitor field name). By doing this, it will get you the competitor name as the heading for your Text object. Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANDY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2011 11:11:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-26T11:11:49Z</dc:date>
    <item>
      <title>Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/242551#M500173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; Hi, I want to add some key points to my dashboard within a text box.The following set expression provides the highest price paid out by our competitors. &lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt;= 'Top Competitor Milk Price&amp;nbsp; = '&amp;amp;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Month]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=max(Month))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Market]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"Milk"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Company]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; -= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"First*"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}PPL) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;How would I also add who the competitor is ?My underlying model is simple it only includes Month, Company, Market, PPL.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Any help greatly appreciated.&lt;/DIV&gt;&lt;DIV&gt;Darrell.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 10:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/242551#M500173</guid>
      <dc:creator>darrellbutler</dc:creator>
      <dc:date>2011-05-26T10:33:29Z</dc:date>
    </item>
    <item>
      <title>Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/242552#M500174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Darrell,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this: As you are using a Text box, Goto Properties-&amp;gt; Caption Check the box Show Caption and in the Title Text box type =COMPETITOR (this would be your actual competitor field name). By doing this, it will get you the competitor name as the heading for your Text object. Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANDY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 11:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/242552#M500174</guid>
      <dc:creator />
      <dc:date>2011-05-26T11:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/242553#M500175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably something using the firstsortedvalue() function.&amp;nbsp; Maybe something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;firstsortedvalue(Competitor,-max({1&amp;lt;[Month] = {"$(=max(Month))"}, [Market] = {"Milk"}, [Company] -= {"First*"}&amp;gt;}PPL))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I probably have a mistake there.&amp;nbsp; But the intent is that it would, for each competitor, calculate the max value paid out by that specific competitor.&amp;nbsp; Then it sorts those in reverse order (the minus sign), putting the maximum of those maximum values first.&amp;nbsp; Then it takes the value of that competitor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also have a look at the rank() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 00:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/242553#M500175</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-05-27T00:09:39Z</dc:date>
    </item>
  </channel>
</rss>

