<?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: Display largest expression value from chart into variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-largest-expression-value-from-chart-into-variables/m-p/1133924#M463538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked perfectly.&amp;nbsp; Thanks for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2016 13:23:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-29T13:23:42Z</dc:date>
    <item>
      <title>Display largest expression value from chart into variables</title>
      <link>https://community.qlik.com/t5/QlikView/Display-largest-expression-value-from-chart-into-variables/m-p/1133922#M463536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirement that the user wants to be able to see the category that has the largest growth Year on Year for the given period, I am trying to put this into a variable so that I can print the value out in an NPrinting template.&amp;nbsp; I was able to achieve the largest Year on Year growth into a text object by using the below:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;= num(max(aggr((Sum ({$&amp;lt;Retailer=P(Retailer_MKT), RecordType={'N'}, Year={$(vCY)}, YearWeek={"&amp;lt;=$(=vWeekCY)"}, Month=, Quarter=&amp;gt;} SalesValue) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; line-height: 1.5em;"&gt;- &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum ({$&amp;lt;Retailer=P(Retailer_MKT), RecordType={'N'}, Year={$(vPY)}, YearWeek={"&amp;lt;=$(=vWeekPY)"}, Month=, Quarter=&amp;gt;} SalesValue)&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; line-height: 1.5em;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Sum ({$&amp;lt;Retailer=P(Retailer_MKT), RecordType={'NIELSEN'}, Year={$(vPY)}, YearWeek={"&amp;lt;=$(=vWeekPY)"}, Month=, Quarter=&amp;gt;} SalesValue), ProductCategory)),'##.#0%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that leaves me with the number in this case 6% growth, but what I need is to get the corresponding Category name into a variable as well.&amp;nbsp; I see the values in a pivot chart, but I am trying to get the largest value into a variable.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="06-28-2016 - Image 005.png" class="jive-image image-1" src="/legacyfs/online/129443_06-28-2016 - Image 005.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;In my chart above, I would want two variables, one variable ='Personal Care' and the other with ='6.00%'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to achieve this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 17:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-largest-expression-value-from-chart-into-variables/m-p/1133922#M463536</guid>
      <dc:creator />
      <dc:date>2016-06-28T17:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Display largest expression value from chart into variables</title>
      <link>https://community.qlik.com/t5/QlikView/Display-largest-expression-value-from-chart-into-variables/m-p/1133923#M463537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;SPAN style="color: #ff0000;"&gt;FirstSortedValue(&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ProductCategory,&lt;/STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/STRONG&gt;&lt;SPAN style="color: #575757;"&gt;-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt;Aggr((Su&lt;/SPAN&gt;m ({$&amp;lt;Retailer=P(Retailer_MKT), RecordType={'N'}, Year={$(vCY)}, YearWeek={"&amp;lt;=$(=vWeekCY)"}, Month=, Quarter=&amp;gt;} SalesValue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- Sum ({$&amp;lt;Retailer=P(Retailer_MKT), RecordType={'N'}, Year={$(vPY)}, YearWeek={"&amp;lt;=$(=vWeekPY)"}, Month=, Quarter=&amp;gt;} SalesValue)) /&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Sum ({$&amp;lt;Retailer=P(Retailer_MKT), RecordType={'NIELSEN'}, Year={$(vPY)}, YearWeek={"&amp;lt;=$(=vWeekPY)"}, Month=, Quarter=&amp;gt;} SalesValue), ProductCategory))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 20:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-largest-expression-value-from-chart-into-variables/m-p/1133923#M463537</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-28T20:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display largest expression value from chart into variables</title>
      <link>https://community.qlik.com/t5/QlikView/Display-largest-expression-value-from-chart-into-variables/m-p/1133924#M463538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked perfectly.&amp;nbsp; Thanks for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 13:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-largest-expression-value-from-chart-into-variables/m-p/1133924#M463538</guid>
      <dc:creator />
      <dc:date>2016-06-29T13:23:42Z</dc:date>
    </item>
  </channel>
</rss>

