<?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: Coloring Sense Maps in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Coloring-Qlik-Sense-Maps/m-p/1610958#M45408</link>
    <description>&lt;P&gt;Actually, my first solution is not enough. You are right, you need that expression, but, this is how it should look:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(FirstSortedValue( [Party], -aggr( sum([Candidate Votes]), [Candidate], Party)) = 'Democratic Party'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;, blue()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,if(FirstSortedValue( [Party], -aggr( sum([Candidate Votes]), [Candidate], Party)) = 'Republican Party'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,red()))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2019 23:51:26 GMT</pubDate>
    <dc:creator>Lisa_P</dc:creator>
    <dc:date>2019-08-08T23:51:26Z</dc:date>
    <item>
      <title>Coloring Qlik Sense Maps</title>
      <link>https://community.qlik.com/t5/App-Development/Coloring-Qlik-Sense-Maps/m-p/1610476#M45356</link>
      <description>&lt;P&gt;Hey everyone!&lt;/P&gt;&lt;P&gt;I'm working with state voter data, and I'm trying to color each county of a state map either blue or red (Democrats or Republicans) depending on which the party won the county. I have all the data organized in one central table.&lt;/P&gt;&lt;P&gt;The data table lists number of votes the candidate won in each precinct (subset of county).&amp;nbsp; A preview of the table is attached below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the color by expression, I tried :&lt;/P&gt;&lt;P&gt;if(FirstSortedValue( [Party], -aggr( sum([Candidate Votes]), [Candidate])) = 'Democratic Party'&lt;BR /&gt;, blue()&lt;BR /&gt;,if(FirstSortedValue( [Party], -aggr( sum([Candidate Votes]), [Candidate])) = 'Republican Party'&lt;BR /&gt;,red()))&lt;/P&gt;&lt;P&gt;but it returns a map of the counties with only one county colored (a picture is attached below).&lt;/P&gt;&lt;P&gt;I believe it is adding up all the votes in all counties and only returning one value for the winning party, but I'm not sure how to solve it. Any help would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 06:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Coloring-Qlik-Sense-Maps/m-p/1610476#M45356</guid>
      <dc:creator>prpranav</dc:creator>
      <dc:date>2019-08-08T06:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring Sense Maps</title>
      <link>https://community.qlik.com/t5/App-Development/Coloring-Qlik-Sense-Maps/m-p/1610484#M45358</link>
      <description>&lt;P&gt;A simpler way to do colors is to create a Master dimension for Party and customize the colors for each Party value in the Master item.&amp;nbsp; Then you can determine the party with the most votes and color by it.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 05:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Coloring-Qlik-Sense-Maps/m-p/1610484#M45358</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-08-08T05:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring Sense Maps</title>
      <link>https://community.qlik.com/t5/App-Development/Coloring-Qlik-Sense-Maps/m-p/1610492#M45359</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;I created the Master Dimension for [Party] and assigned colored for each value, but where do I put the calculation for the party with the highest votes and color each county with it?&lt;/P&gt;&lt;P&gt;Also, is there another way to do the calculation, because I think the firstsortedvalue is doing the entire calculation for the state at once instead of per county?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 06:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Coloring-Qlik-Sense-Maps/m-p/1610492#M45359</guid>
      <dc:creator>prpranav</dc:creator>
      <dc:date>2019-08-08T06:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring Sense Maps</title>
      <link>https://community.qlik.com/t5/App-Development/Coloring-Qlik-Sense-Maps/m-p/1610958#M45408</link>
      <description>&lt;P&gt;Actually, my first solution is not enough. You are right, you need that expression, but, this is how it should look:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if(FirstSortedValue( [Party], -aggr( sum([Candidate Votes]), [Candidate], Party)) = 'Democratic Party'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;, blue()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,if(FirstSortedValue( [Party], -aggr( sum([Candidate Votes]), [Candidate], Party)) = 'Republican Party'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,red()))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 23:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Coloring-Qlik-Sense-Maps/m-p/1610958#M45408</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-08-08T23:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Coloring Sense Maps</title>
      <link>https://community.qlik.com/t5/App-Development/Coloring-Qlik-Sense-Maps/m-p/1611020#M45415</link>
      <description>&lt;P&gt;This is still resulting the same result&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;IMG src="https://community.qlik.com/html/emoticons/1f61e.png" border="0" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;&lt;P&gt;Is there another way to make the calculation?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 07:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Coloring-Qlik-Sense-Maps/m-p/1611020#M45415</guid>
      <dc:creator>prpranav</dc:creator>
      <dc:date>2019-08-09T07:08:41Z</dc:date>
    </item>
  </channel>
</rss>

