<?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 Bar Chart Color by firstsortedvalue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76100#M5053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the Adventureworks database and trying to set up the following bar chart:&lt;/P&gt;&lt;P&gt;Sales Amount by StateProvince Name, each bar colored by the top Occupation calculated as highest average Sales.&lt;/P&gt;&lt;P&gt;I expect to see a bar chart with each bar colored in one of the 5 colors corresponding to the 5 values in the Occupation dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to create an expression which brings me the top occupation using firstsortedvalue:&lt;/P&gt;&lt;P&gt;firstsortedvalue(EnglishOccupation,-Aggr ((sum($(vSalesUSD))/Count(CustomerKey)), EnglishOccupation, StateProvinceName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I can't make this same expresion work as a color differentiator in the Bar chart. What am I missing?&lt;/P&gt;&lt;P&gt;The expression works as expected in a simple table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="highest average sales ok2.PNG" class="jive-image image-1" src="/legacyfs/online/195745_highest average sales ok2.PNG" style="width: 620px; height: 386px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2018 18:27:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-08T18:27:12Z</dc:date>
    <item>
      <title>Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76100#M5053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the Adventureworks database and trying to set up the following bar chart:&lt;/P&gt;&lt;P&gt;Sales Amount by StateProvince Name, each bar colored by the top Occupation calculated as highest average Sales.&lt;/P&gt;&lt;P&gt;I expect to see a bar chart with each bar colored in one of the 5 colors corresponding to the 5 values in the Occupation dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to create an expression which brings me the top occupation using firstsortedvalue:&lt;/P&gt;&lt;P&gt;firstsortedvalue(EnglishOccupation,-Aggr ((sum($(vSalesUSD))/Count(CustomerKey)), EnglishOccupation, StateProvinceName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I can't make this same expresion work as a color differentiator in the Bar chart. What am I missing?&lt;/P&gt;&lt;P&gt;The expression works as expected in a simple table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="highest average sales ok2.PNG" class="jive-image image-1" src="/legacyfs/online/195745_highest average sales ok2.PNG" style="width: 620px; height: 386px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 18:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76100#M5053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T18:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76101#M5054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2018 05:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76101#M5054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-10T05:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76102#M5055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not giving up on this, any ideas if this can be achieved and how?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 08:53:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76102#M5055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-14T08:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76103#M5056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the exact expression you are using for your color expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 09:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76103#M5056</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-14T09:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76104#M5057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's the problem, I don't know how I should use the above expression, which brings me correct results, for the color by expression field. I tried using it as it is and I only get grey bars...&lt;/P&gt;&lt;P&gt;Thanks for looking into this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 11:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76104#M5057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-14T11:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76105#M5058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 11:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76105#M5058</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-14T11:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76106#M5059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Here it is. The first sheet should be self explanatory. I want to have the first chart colored by the English occupation, as the data shows in the table in the lower right side.&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;Everything else seems to be working ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 18:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76106#M5059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-14T18:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76107#M5060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/196400_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 18:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76107#M5060</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-14T18:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76108#M5061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;exactly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76108#M5061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-14T19:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76109#M5062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached the sample back with my last response for you to take a look at&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76109#M5062</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-14T19:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76110#M5063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, this does work, I actually thought about doing this but was hoping of some way which doesn't involve a list of fixed values.&lt;/P&gt;&lt;P&gt;The way I imagined this, without going in much depth about the actual logic, was that the result of the expression will be interpreted as a dynamic dimension, each of its values being dynamically assigned a color.&lt;/P&gt;&lt;P&gt;Am I that far off?&lt;/P&gt;&lt;P&gt;I will mark the answer as correct, even though my expectations were a bit different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:33:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76110#M5063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-14T19:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76111#M5064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if there is another way or not, but may be &lt;A href="https://community.qlik.com/qlik-users/211603"&gt;omarbensalem&lt;/A&gt;‌ or &lt;A href="https://community.qlik.com/qlik-users/206168"&gt;youssefbelloum&lt;/A&gt;‌ might have ideas here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 19:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76111#M5064</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-14T19:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76112#M5065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for tagging me Sunny.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Unfortunately now I am not able to add anything..it is beyond me. as soon as I find something interesting I will share it with you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 23:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76112#M5065</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-03-14T23:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart Color by firstsortedvalue</title>
      <link>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76113#M5066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem at all... I just thought that since this is Qlik Sense question, you might have a better idea of its inbuilt functionality.... May be Omar can offer any advice still&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 00:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Bar-Chart-Color-by-firstsortedvalue/m-p/76113#M5066</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-15T00:42:09Z</dc:date>
    </item>
  </channel>
</rss>

