<?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 Calculate Winning Party for every county in state for election in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-Winning-Party-for-every-county-in-state-for-election/m-p/1610905#M45400</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hey everyone!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm working with state voter data, and I'm trying to create a chart with the winning party on each county . I have all the data organized in one central table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The data table lists number of votes the candidate won in each precinct (subset of county).&amp;nbsp; A preview of the data table is attached below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As a measure, I tried :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FirstSortedValue( [Party], -aggr( sum([Candidate Votes]), [Candidate]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but it returns only the party that won the entire election, not each county (a picture is attached below).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I believe the firstsortedvalue() 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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Aug 2019 18:56:25 GMT</pubDate>
    <dc:creator>prpranav</dc:creator>
    <dc:date>2019-08-08T18:56:25Z</dc:date>
    <item>
      <title>Calculate Winning Party for every county in state for election</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Winning-Party-for-every-county-in-state-for-election/m-p/1610905#M45400</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey everyone!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm working with state voter data, and I'm trying to create a chart with the winning party on each county . I have all the data organized in one central table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The data table lists number of votes the candidate won in each precinct (subset of county).&amp;nbsp; A preview of the data table is attached below.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As a measure, I tried :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FirstSortedValue( [Party], -aggr( sum([Candidate Votes]), [Candidate]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but it returns only the party that won the entire election, not each county (a picture is attached below).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I believe the firstsortedvalue() 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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 18:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Winning-Party-for-every-county-in-state-for-election/m-p/1610905#M45400</guid>
      <dc:creator>prpranav</dc:creator>
      <dc:date>2019-08-08T18:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Winning Party for every county in state for election</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Winning-Party-for-every-county-in-state-for-election/m-p/1610961#M45409</link>
      <description>&lt;P&gt;Same as my other answer:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FirstSortedValue( [Party], -aggr( sum([Candidate Votes]), [Candidate], Party))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 00:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Winning-Party-for-every-county-in-state-for-election/m-p/1610961#M45409</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-08-09T00:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Winning Party for every county in state for election</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-Winning-Party-for-every-county-in-state-for-election/m-p/1611012#M45413</link>
      <description>&lt;P&gt;This is still resulting the same result &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there another way to make the calculation?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 06:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-Winning-Party-for-every-county-in-state-for-election/m-p/1611012#M45413</guid>
      <dc:creator>prpranav</dc:creator>
      <dc:date>2019-08-09T06:43:09Z</dc:date>
    </item>
  </channel>
</rss>

