<?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 Simple bar chart of 2 variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283703#M582516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It says 'error in the expression' when i type (=UnitsInStock) in the expression field&lt;/P&gt;&lt;P&gt;But for every productID there's only one value for UnitsInStock and every productID is mentioned only once in our table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2011 12:26:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-07T12:26:02Z</dc:date>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283696#M582505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm totally knew to Qlikview and I want to make a barchart of ProductID and UnitsInStock.&lt;/P&gt;&lt;P&gt;I have a table, called products that has a column ProductID and a column UnitsInStock, so I just want those 2 on a bar chart.&lt;/P&gt;&lt;P&gt;But how do I do this? Cause if I choose ProductID as first dimension and as expression UnitsInStock, it doesn't work.&lt;/P&gt;&lt;P&gt;Do I always have to use count, sum or something else in the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 08:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283696#M582505</guid>
      <dc:creator />
      <dc:date>2011-12-07T08:16:46Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283697#M582506</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;You don't have to use count or sum. Just take ProductID as Dimension and UnitsInStock as Expression like this ( =UnitsInStock ) in Bar chart. It will automatically show you the no. of units in stock per product id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apurva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 10:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283697#M582506</guid>
      <dc:creator />
      <dc:date>2011-12-07T10:28:56Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283698#M582507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I think that approach is fine as long as there is just one record for each ProductID. However, if ProductID is duplicated in anyway (for example an additional field per record shows StockLocation) then this will show no value/Null value. Its best to use Sum which works in both cases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 10:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283698#M582507</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2011-12-07T10:39:39Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283699#M582508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your values are getting repeated in the database,&lt;/P&gt;&lt;P&gt;so if you simply apply units in stock then it won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there must be a date associated with each value,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so that you can find units in stock of product id accoding to last entry in the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;product id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; units in stock&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12/04/2011&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12/05/2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can find out units in stock of product id, which is 8 not 10 according to last date entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So try to associate date with each data entry then apply the below expression in your bar chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(aggr(units in stock,product id),aggr(product id,max(date)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 11:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283699#M582508</guid>
      <dc:creator />
      <dc:date>2011-12-07T11:55:40Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283700#M582510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That doesn't work, i don't understand why but it gives an error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 12:20:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283700#M582510</guid>
      <dc:creator />
      <dc:date>2011-12-07T12:20:42Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283701#M582514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We don't work with dates, it's just the stock at this moment that's in the table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 12:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283701#M582514</guid>
      <dc:creator />
      <dc:date>2011-12-07T12:21:19Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283702#M582515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Are you able to send the application for us to look at ?&lt;/P&gt;&lt;P&gt;Or ... what error are you seeing ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 12:22:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283702#M582515</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2011-12-07T12:22:49Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283703#M582516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It says 'error in the expression' when i type (=UnitsInStock) in the expression field&lt;/P&gt;&lt;P&gt;But for every productID there's only one value for UnitsInStock and every productID is mentioned only once in our table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 12:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283703#M582516</guid>
      <dc:creator />
      <dc:date>2011-12-07T12:26:02Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283704#M582517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any primary key according to which you can differentiate your data other than product id , as it is getting repeated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 12:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283704#M582517</guid>
      <dc:creator />
      <dc:date>2011-12-07T12:26:11Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283705#M582518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every productID is only mentioned once in our table Products, so that's the key.&lt;/P&gt;&lt;P&gt;Productname can also be the key, but that's not a good idea, i think.&lt;/P&gt;&lt;P&gt;But in other tables in our database productID is used to, can that be the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 12:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283705#M582518</guid>
      <dc:creator />
      <dc:date>2011-12-07T12:34:29Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283706#M582519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is indeed that ProductID is used in other tables in our database.&lt;/P&gt;&lt;P&gt;I tried an application with only the table products and than it works with dimension=productID and expression: UnitsInStock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't it possible to only use the ProductID of the table products, like products.productID in sql.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 13:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283706#M582519</guid>
      <dc:creator />
      <dc:date>2011-12-07T13:28:13Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283707#M582520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes, it is possible.&lt;/P&gt;&lt;P&gt;But it may be that you need to check the structure of your data is in good order, which may well sort out the problem. &lt;/P&gt;&lt;P&gt;If you use Ctrl T to show your data, make sure there are no unsual relationships going on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 13:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283707#M582520</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2011-12-07T13:52:40Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283708#M582521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So products.productID should work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think there are unusual relationships&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 14:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283708#M582521</guid>
      <dc:creator />
      <dc:date>2011-12-07T14:01:05Z</dc:date>
    </item>
    <item>
      <title>Simple bar chart of 2 variables</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283709#M582522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try Ctrl T ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can QUALIFY the field productID in the script which means it is no longer linked to other tables. (Take a look at the online help).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should then be able to do what you suggest. When you list the fields in your chart object, you will see products.productID is now listed. But it is not a good solution and could easily affect other objects in your application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2011 14:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-bar-chart-of-2-variables/m-p/283709#M582522</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2011-12-07T14:09:15Z</dc:date>
    </item>
  </channel>
</rss>

