<?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: FIRSTSORTEDVALUE in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/FIRSTSORTEDVALUE/m-p/1088759#M18182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno, if i create the synthetic dimension with the help of valuelist it affects to my top 5 customers bar chart as i have now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to color the top 5 barchart using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&amp;nbsp; Customer = concat (IF( aggr ( Rank(Sum({$&amp;lt;Year= , Item=, ProjectStatus={3} &amp;gt;} AGGR({$&amp;lt;Year= , Item=,&amp;nbsp; ProjectStatus={3} &amp;gt;}Sum(Revenue_det),Optsn))),Customer)=1, Customer)),LightBlue(), if ( Customer = concat (IF( aggr ( Rank(Sum({$&amp;lt;Year= , Item=, ProjectStatus={3} &amp;gt;} AGGR({$&amp;lt;Year= , Item=,&amp;nbsp; ProjectStatus={3} &amp;gt;}Sum(Revenue_det),Optsn))),Customer)=2, Customer)), blue(),if ( Customer = concat (IF( aggr ( Rank(Sum({$&amp;lt;Year= , Item=, ProjectStatus={3} &amp;gt;} AGGR({$&amp;lt;Year= , Item=,&amp;nbsp; ProjectStatus={3} &amp;gt;}Sum(Revenue_det),Optsn))),Customer)=3, Customer)), red(),if ( Customer = concat (IF( aggr ( Rank(Sum({$&amp;lt;Year= , Item=, ProjectStatus={3} &amp;gt;} AGGR({$&amp;lt;Year= , Item=,&amp;nbsp; ProjectStatus={3} &amp;gt;}Sum(Revenue_det),Optsn))),Customer)=4, Customer)), yellow(), if ( Customer = concat (IF( aggr ( Rank(Sum({$&amp;lt;Year= , Item=, ProjectStatus={3} &amp;gt;} AGGR({$&amp;lt;Year= , Item=,&amp;nbsp; ProjectStatus={3} &amp;gt;}Sum(Revenue_det),Optsn))),Customer)=5, Customer)),green()) ) )))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the&amp;nbsp; function&amp;nbsp; rank(sum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now the challenge to color in a scatterplot the projects for each one Customer respectively. &lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2016 08:49:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-04T08:49:21Z</dc:date>
    <item>
      <title>FIRSTSORTEDVALUE</title>
      <link>https://community.qlik.com/t5/App-Development/FIRSTSORTEDVALUE/m-p/1088757#M18180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community as you can see in the attached image i have applied the below function in a text box showing the right data, retrieving the Customer Code based on top Customers (Sales):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIRSTSORTEDVALUE(cust_code,-aggr(Sum({$&amp;lt;Year= , Item=, ProjectStatus={3} &amp;gt;} AGGR({$&amp;lt;Year= , Item=,&amp;nbsp; ProjectStatus={3} &amp;gt;}Sum(Revenue_det),Optsn)),Customer),1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Required result : 0323&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is when i am trying to color the bar chart respectively for my top 5 :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st ---&amp;gt; blue()&lt;/P&gt;&lt;P&gt;2 -----&amp;gt;red ()&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5&amp;nbsp; .....and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used if statement using the above function and color.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( cust_code = above_function, blue())&amp;nbsp; and it does not affect my bar chart .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any experience by coloring Top 5?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i can color my top 5 with unique colors&amp;nbsp; for every Customer i want to place this color expression in a scatter plot to color projects of this Customer respectively.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;IMG __jive_id="116884" alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/116884_1.png" style="height: 388px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 20:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/FIRSTSORTEDVALUE/m-p/1088757#M18180</guid>
      <dc:creator />
      <dc:date>2016-03-03T20:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: FIRSTSORTEDVALUE</title>
      <link>https://community.qlik.com/t5/App-Development/FIRSTSORTEDVALUE/m-p/1088758#M18181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dimitris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be have a look in this thread you may found color approach that could help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/130571"&gt;https://community.qlik.com/thread/130571&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first approach with a valuelist function , and second approach with creating a table with a list of your project and a RGB value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 08:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/FIRSTSORTEDVALUE/m-p/1088758#M18181</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2016-03-04T08:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: FIRSTSORTEDVALUE</title>
      <link>https://community.qlik.com/t5/App-Development/FIRSTSORTEDVALUE/m-p/1088759#M18182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno, if i create the synthetic dimension with the help of valuelist it affects to my top 5 customers bar chart as i have now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to color the top 5 barchart using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (&amp;nbsp; Customer = concat (IF( aggr ( Rank(Sum({$&amp;lt;Year= , Item=, ProjectStatus={3} &amp;gt;} AGGR({$&amp;lt;Year= , Item=,&amp;nbsp; ProjectStatus={3} &amp;gt;}Sum(Revenue_det),Optsn))),Customer)=1, Customer)),LightBlue(), if ( Customer = concat (IF( aggr ( Rank(Sum({$&amp;lt;Year= , Item=, ProjectStatus={3} &amp;gt;} AGGR({$&amp;lt;Year= , Item=,&amp;nbsp; ProjectStatus={3} &amp;gt;}Sum(Revenue_det),Optsn))),Customer)=2, Customer)), blue(),if ( Customer = concat (IF( aggr ( Rank(Sum({$&amp;lt;Year= , Item=, ProjectStatus={3} &amp;gt;} AGGR({$&amp;lt;Year= , Item=,&amp;nbsp; ProjectStatus={3} &amp;gt;}Sum(Revenue_det),Optsn))),Customer)=3, Customer)), red(),if ( Customer = concat (IF( aggr ( Rank(Sum({$&amp;lt;Year= , Item=, ProjectStatus={3} &amp;gt;} AGGR({$&amp;lt;Year= , Item=,&amp;nbsp; ProjectStatus={3} &amp;gt;}Sum(Revenue_det),Optsn))),Customer)=4, Customer)), yellow(), if ( Customer = concat (IF( aggr ( Rank(Sum({$&amp;lt;Year= , Item=, ProjectStatus={3} &amp;gt;} AGGR({$&amp;lt;Year= , Item=,&amp;nbsp; ProjectStatus={3} &amp;gt;}Sum(Revenue_det),Optsn))),Customer)=5, Customer)),green()) ) )))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the&amp;nbsp; function&amp;nbsp; rank(sum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now the challenge to color in a scatterplot the projects for each one Customer respectively. &lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 08:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/FIRSTSORTEDVALUE/m-p/1088759#M18182</guid>
      <dc:creator />
      <dc:date>2016-03-04T08:49:21Z</dc:date>
    </item>
  </channel>
</rss>

