<?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: Re: chart sorting linked to clever expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498566#M1133829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A mapping table is created with a load statement preceded by the mapping keyword. The map can then be used in the applymap function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MapColor:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mapping LOAD Activity, rgb(Red, Green, Blue) as ActivityColor&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD daydate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Time period],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [activity title],&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('MapColor',[activity title])&amp;nbsp; as ActivityColor,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [joined data]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 16:50:40 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-11-12T16:50:40Z</dc:date>
    <item>
      <title>chart sorting linked to clever expression</title>
      <link>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498557#M1133820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALTO reponse earlier in the week has enabled us to create charts per neighbourhood which is what we were looking for on an application; however, were now trying to get the charts to sort in order (i.e highest % down to lowest %). However, crucially, the legend colours need to remain consistent (e,g ASB - red). It does this (currently default of the chart) however the % are not in ascending order.&amp;nbsp; When we change to sort by frequency it then upsets the legend colours so the colours are different on every chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is important legend stays the same so we dont have to attach to each chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On aatatched refer to tab entitled - &lt;STRONG&gt;project time by neighbourhood&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 12:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498557#M1133820</guid>
      <dc:creator />
      <dc:date>2013-11-08T12:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: chart sorting linked to clever expression</title>
      <link>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498558#M1133821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Click on the + in front of the expression on the Expression tab, select Background Color and enter in the Definition field this expression: color(FieldIndex('project title',only({1}[project title])))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 12:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498558#M1133821</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-08T12:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: chart sorting linked to clever expression</title>
      <link>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498559#M1133822</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;Thanks that has worked; however, this seems to be overriding the project title filter as it now shows out of office. On the main tab this project title has been asked to be excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 13:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498559#M1133822</guid>
      <dc:creator />
      <dc:date>2013-11-08T13:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: chart sorting linked to clever expression</title>
      <link>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498560#M1133823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your document was showing Out of office already in for example projects Brindley and Clifton Green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you want to change your expression to:&lt;/P&gt;&lt;P&gt;= Count({1&amp;lt;[project title]=p([project title]),[Neighbourhood]={'Brindley'}&amp;gt;} [Time (decimal hours)])&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Count({1&amp;lt;[project title]=p([project title]),[Neighbourhood]={'Brindley'}&amp;gt;} TOTAL [Time (decimal hours)])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 15:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498560#M1133823</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-08T15:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: chart sorting linked to clever expression</title>
      <link>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498561#M1133824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats seems to have worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In respect to the colour though it now only uses about 3, which are all variations of grey and blue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added your expression onto 'Project Title - Agecroft' chart on the attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can more colours be added that you get with a standard chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 08:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498561#M1133824</guid>
      <dc:creator />
      <dc:date>2013-11-11T08:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: chart sorting linked to clever expression</title>
      <link>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498562#M1133825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the Colors tab you can define 20 colors. If you need more colors you can create a table in the script as explained in this blog post: &lt;A _jive_internal="true" class="font-color-normal" href="https://community.qlik.com/blogs/qlikviewdesignblog/2012/12/04/colors-in-charts" style="font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;Colors in charts&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 08:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498562#M1133825</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-11T08:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: chart sorting linked to clever expression</title>
      <link>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498563#M1133826</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;Thanks for this...have seen this article before. However, 20 colours is easily enough but the results aren't following the colours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the chart mentioned the results don't follow colours 1-6, 7-12 or 13-18. Colours 1-3 dont appear at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 09:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498563#M1133826</guid>
      <dc:creator />
      <dc:date>2013-11-11T09:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: chart sorting linked to clever expression</title>
      <link>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498564#M1133827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually they do follow the colors, but the colors are assigned based on the order in which the project title values were loaded in the script. If you want a specific fixed order you need to first load the project titles in the order you want. Or you can use a color table like explained in the blog post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 09:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498564#M1133827</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-11T09:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: chart sorting linked to clever expression</title>
      <link>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498565#M1133828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much..really trying to get to grips with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read the post and developed subsquent table (see atatched excel sheet). However, can you advise on the script where and how you put in the ' 'mapping' instructions (step 2 and 3 on the blog)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but would really appreciate the assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2013 15:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498565#M1133828</guid>
      <dc:creator />
      <dc:date>2013-11-11T15:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re: chart sorting linked to clever expression</title>
      <link>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498566#M1133829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A mapping table is created with a load statement preceded by the mapping keyword. The map can then be used in the applymap function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MapColor:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mapping LOAD Activity, rgb(Red, Green, Blue) as ActivityColor&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD daydate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Time period],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [activity title],&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('MapColor',[activity title])&amp;nbsp; as ActivityColor,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [joined data]);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 16:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-sorting-linked-to-clever-expression/m-p/498566#M1133829</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-12T16:50:40Z</dc:date>
    </item>
  </channel>
</rss>

