<?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: Create a Bar for the Average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612979#M546289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can add a Average line very easily, I just like the look of having the Average as the Bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try what you have suggested and revert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2014 12:54:19 GMT</pubDate>
    <dc:creator>rustyfishbones</dc:creator>
    <dc:date>2014-03-07T12:54:19Z</dc:date>
    <item>
      <title>Create a Bar for the Average</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612975#M546285</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;/P&gt;&lt;P&gt;I am looking to do something similar to this in Qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-03-07_1228.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/54493_2014-03-07_1228.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using an Expression and playing with the Dimension Limits, but I can't get the look that I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone created anything similar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612975#M546285</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-03-07T12:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bar for the Average</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612976#M546286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must compute average value in the script, then it automatically displays as you need&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612976#M546286</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-07T12:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bar for the Average</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612977#M546287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use something like the following script, use Country.DimOrder in your (set) expression to control what to display and how to format it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Country]:&lt;/P&gt;&lt;P&gt;CrossTable('Country.Dim','Country.DimOrder',1)&lt;/P&gt;&lt;P&gt;Load @1:8 as [Id],&lt;/P&gt;&lt;P&gt;if(Country=1,'1') as [Austria],&lt;/P&gt;&lt;P&gt;if(Country=1,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=2,'2') as [Belgium],&lt;/P&gt;&lt;P&gt;if(Country=2,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=3,'3') as [Czech Republic],&lt;/P&gt;&lt;P&gt;if(Country=3,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=4,'4') as [Denmark],&lt;/P&gt;&lt;P&gt;if(Country=4,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=5,'5') as [Finland],&lt;/P&gt;&lt;P&gt;if(Country=5,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=6,'6') as [France],&lt;/P&gt;&lt;P&gt;if(Country=6,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=7,'7') as [Germany],&lt;/P&gt;&lt;P&gt;if(Country=7,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=8,'8') as [Greece],&lt;/P&gt;&lt;P&gt;if(Country=8,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=9,'9') as [Hungary],&lt;/P&gt;&lt;P&gt;if(Country=9,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=11,'11') as [Italy],&lt;/P&gt;&lt;P&gt;if(Country=11,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=12,'12') as [Netherlands],&lt;/P&gt;&lt;P&gt;if(Country=12,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=13,'13') as [Norway],&lt;/P&gt;&lt;P&gt;if(Country=13,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=14,'14') as [Poland],&lt;/P&gt;&lt;P&gt;if(Country=14,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=15,'15') as [Portugal],&lt;/P&gt;&lt;P&gt;if(Country=15,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=16,'16') as [Spain],&lt;/P&gt;&lt;P&gt;if(Country=16,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=17,'17') as [Sweden],&lt;/P&gt;&lt;P&gt;if(Country=17,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=18,'18') as [Switzerland],&lt;/P&gt;&lt;P&gt;if(Country=18,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=19,'19') as [Uk],&lt;/P&gt;&lt;P&gt;if(Country=19,'-1') as [Europe],&lt;/P&gt;&lt;P&gt;if(Country=31,'31') as [Turkey],&lt;/P&gt;&lt;P&gt;if(Country=31,'-1') as [Eurasia],&lt;/P&gt;&lt;P&gt;if(Country=41,'41') as [Russia],&lt;/P&gt;&lt;P&gt;if(Country=41,'-1') as [Eurasia],&lt;/P&gt;&lt;P&gt;from file;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612977#M546287</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-03-07T12:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bar for the Average</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612978#M546288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why would you not put the global average on as a line rather than a bar, that way it would be easy?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you achieve something like this by creating a table linking into your data model, with a global average field linking to all values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GlobalAverage:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country as [Global Average Country]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT ExistingTable;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GlobalAverage:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Global Average' as [Global Average Country]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESIDENT ExistingTable;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This way each country would exist in the table linking to itself, and then again linking to the average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you should then need to do is change your dimension from &lt;STRONG&gt;Country &lt;/STRONG&gt;to &lt;STRONG&gt;Global Average Country&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've not given it a try - but I don't see why this wouldn't achieve what you are after.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612978#M546288</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-03-07T12:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bar for the Average</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612979#M546289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can add a Average line very easily, I just like the look of having the Average as the Bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try what you have suggested and revert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 12:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612979#M546289</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-03-07T12:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bar for the Average</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612980#M546290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it with a valuelist() function (synthetic dimension).&amp;nbsp; The chart itself is not select-able, but the chart is fully dynamic and responds to any other selections.&amp;nbsp; Also a good example of using colormix wizard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 15:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612980#M546290</guid>
      <dc:creator />
      <dc:date>2014-03-14T15:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bar for the Average</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612981#M546291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 15:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612981#M546291</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-03-14T15:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bar for the Average</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612982#M546292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After thinking about this question, and other times where values can be aggregated in the data model by generating extra dimensions, I put together this blog post: &lt;A href="http://bit.ly/1nkhVi4" title="http://bit.ly/1nkhVi4"&gt;http://bit.ly/1nkhVi4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It contains example code for creating accumulations, moving annual totals and average bars - with a downloadable QlikView app illustrating the methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you find it useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 23:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612982#M546292</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-04-24T23:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Bar for the Average</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612983#M546293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Steve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 15:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-Bar-for-the-Average/m-p/612983#M546293</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-04-25T15:25:05Z</dc:date>
    </item>
  </channel>
</rss>

