<?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 Sorting and using colors in Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sorting-and-using-colors-in-Pivot-Table/m-p/991736#M337878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a pivot table.&lt;/P&gt;&lt;P&gt;I have a reference-station (collored in blue).&lt;/P&gt;&lt;P&gt;And if the pumpprice of an our for a station is equal to the pummprice of the reverence station it should color Orange, If it's more than I would like to see it in green and if the rpice is lower than than the price of the reference-station it should color red.&lt;/P&gt;&lt;P&gt;Now I do someting like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Site_Id_Name = Site_Id_NameEigen, rgb(195,227,255),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (round(avg(Pump_price),0.001) &amp;gt; round(avg(TOTAL &amp;lt;_CalYear, _CalMonth, _CalDay&amp;gt; {&amp;lt;Site_Id_Name={"$(=vEigenStation)"}&amp;nbsp; , _CalYearHour={"$(=vMaxDateHour)"} &amp;gt;}Pump_price),0.001), rgb(129,226,82),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (round(avg(Pump_price),0.001) = round(avg(TOTAL &amp;lt;_CalYear, _CalMonth, _CalDay&amp;gt; {&amp;lt;Site_Id_Name={"$(=vEigenStation)"}&amp;nbsp; , _CalYearHour={"$(=vMaxDateHour)"} &amp;gt;}Pump_price),0.001), rgb(255,128,0), rgb(240,102,68))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it isn't working for the hours.&lt;/P&gt;&lt;P&gt;How can I solve this?&lt;/P&gt;&lt;P&gt;And I would also like to sort on the highest hour.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sorting.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96914_sorting.JPG" style="height: 165px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2015 12:26:20 GMT</pubDate>
    <dc:creator>kris_vliegen</dc:creator>
    <dc:date>2015-08-25T12:26:20Z</dc:date>
    <item>
      <title>Sorting and using colors in Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Sorting-and-using-colors-in-Pivot-Table/m-p/991736#M337878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a pivot table.&lt;/P&gt;&lt;P&gt;I have a reference-station (collored in blue).&lt;/P&gt;&lt;P&gt;And if the pumpprice of an our for a station is equal to the pummprice of the reverence station it should color Orange, If it's more than I would like to see it in green and if the rpice is lower than than the price of the reference-station it should color red.&lt;/P&gt;&lt;P&gt;Now I do someting like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Site_Id_Name = Site_Id_NameEigen, rgb(195,227,255),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (round(avg(Pump_price),0.001) &amp;gt; round(avg(TOTAL &amp;lt;_CalYear, _CalMonth, _CalDay&amp;gt; {&amp;lt;Site_Id_Name={"$(=vEigenStation)"}&amp;nbsp; , _CalYearHour={"$(=vMaxDateHour)"} &amp;gt;}Pump_price),0.001), rgb(129,226,82),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if (round(avg(Pump_price),0.001) = round(avg(TOTAL &amp;lt;_CalYear, _CalMonth, _CalDay&amp;gt; {&amp;lt;Site_Id_Name={"$(=vEigenStation)"}&amp;nbsp; , _CalYearHour={"$(=vMaxDateHour)"} &amp;gt;}Pump_price),0.001), rgb(255,128,0), rgb(240,102,68))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it isn't working for the hours.&lt;/P&gt;&lt;P&gt;How can I solve this?&lt;/P&gt;&lt;P&gt;And I would also like to sort on the highest hour.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sorting.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/96914_sorting.JPG" style="height: 165px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 12:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sorting-and-using-colors-in-Pivot-Table/m-p/991736#M337878</guid>
      <dc:creator>kris_vliegen</dc:creator>
      <dc:date>2015-08-25T12:26:20Z</dc:date>
    </item>
  </channel>
</rss>

