<?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 Bar and Line Chart Questions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1784746#M1209905</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;following example Table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;F1, F2, F3, F4, F5, F6&lt;BR /&gt;Impl_Year, Impl_Number, SalesPerson, ItemCode, Forecast&lt;BR /&gt;2018, 2018_01, John, 100101, 25000&lt;BR /&gt;2018, 2018_02, Boris, 100102, n.a.&lt;BR /&gt;2018, 2018_03, Pablo, 100103, 20000&lt;BR /&gt;2019, 2019_01, John, 100104, 15000&lt;BR /&gt;2019, 2019_02, Boris, 100105, n.a.&lt;BR /&gt;2019, 2019_03, Pablo, 100106, 7500&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;F1, F2, F3, F4, F5&lt;BR /&gt;PostingDate, ItemCode, InvoiceNumber, Amount, InvoiceType&lt;BR /&gt;01.01.2018, 100101, INV_01, 1550, 1&lt;BR /&gt;01.01.2018, 100101, INV_02, 30000, 2&lt;BR /&gt;01.01.2018, 100102, INV_03, 25000, 1&lt;BR /&gt;01.06.2018, 100102, INV_04, 18555, 2&lt;BR /&gt;01.06.2018, 100102, INV_05, 33445, 1&lt;BR /&gt;01.06.2018, 100103, INV_06, 25222, 2&lt;BR /&gt;01.06.2018, 100104, INV_07, 1520, 1&lt;BR /&gt;01.03.2019, 100106, INV_08, 1521, 2&lt;BR /&gt;01.03.2019, 100105, INV_09, 14582, 1&lt;BR /&gt;01.03.2019, 100103, INV_10, 12345, 2&lt;BR /&gt;01.03.2019, 100105, INV_11, 455, 1&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a pivot table with the following expressions and it works perfect so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression(Amount):&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression (Fullfillment):&lt;BR /&gt;if(Forecast = 'n.a.', 'no forecast',&lt;BR /&gt;(Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount)/Forecast))&lt;/P&gt;&lt;P&gt;Expression (Classification):&lt;BR /&gt;if(Fullfillment= 'no forecast', 'no forecast',&lt;BR /&gt;if(Fullfillment &amp;gt; 1.50, '&amp;gt;150',&lt;BR /&gt;if(Fullfillment &amp;gt; 1.10, '110-150',&lt;BR /&gt;if(Fullfillment &amp;gt; 0.90, '90-110',&lt;BR /&gt;if(Fullfillment &amp;gt;= 0.50, '50-90', '&amp;lt;50')))))&lt;/P&gt;&lt;P&gt;Background Color:&lt;BR /&gt;if(Fullfillment= 'no forecast', RGB(191, 191, 191),&lt;BR /&gt;if(Fullfillment &amp;gt; 1.50, RGB(0,102,255),&lt;BR /&gt;if(Fullfillment &amp;gt; 1.10, RGB(0,176,80),&lt;BR /&gt;if(Fullfillment &amp;gt; 0.90, RGB(146,208,80),&lt;BR /&gt;if(Fullfillment &amp;gt;= 0.50, RGB(255,192,0), RGB(255,0,0))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i need two Charts:&lt;BR /&gt;counting the items which are sold by years and the classification as single bars&lt;/P&gt;&lt;P&gt;I've tried already a couple of ways but cannot get to the right solution.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unkisoN_0-1614002359815.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49561iA1B11E721138B5A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unkisoN_0-1614002359815.png" alt="unkisoN_0-1614002359815.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd Chart I don't even know how to start:&lt;/P&gt;&lt;P&gt;I need to show the development of the Items based on the implementation Year and how long they are active:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unkisoN_1-1614002793368.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49564i109FD9C9AB4E878E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unkisoN_1-1614002793368.png" alt="unkisoN_1-1614002793368.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope i have explained my issues understandable &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 14:07:44 GMT</pubDate>
    <dc:creator>unkisoN</dc:creator>
    <dc:date>2021-02-22T14:07:44Z</dc:date>
    <item>
      <title>Bar and Line Chart Questions</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1784746#M1209905</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;following example Table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;F1, F2, F3, F4, F5, F6&lt;BR /&gt;Impl_Year, Impl_Number, SalesPerson, ItemCode, Forecast&lt;BR /&gt;2018, 2018_01, John, 100101, 25000&lt;BR /&gt;2018, 2018_02, Boris, 100102, n.a.&lt;BR /&gt;2018, 2018_03, Pablo, 100103, 20000&lt;BR /&gt;2019, 2019_01, John, 100104, 15000&lt;BR /&gt;2019, 2019_02, Boris, 100105, n.a.&lt;BR /&gt;2019, 2019_03, Pablo, 100106, 7500&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;F1, F2, F3, F4, F5&lt;BR /&gt;PostingDate, ItemCode, InvoiceNumber, Amount, InvoiceType&lt;BR /&gt;01.01.2018, 100101, INV_01, 1550, 1&lt;BR /&gt;01.01.2018, 100101, INV_02, 30000, 2&lt;BR /&gt;01.01.2018, 100102, INV_03, 25000, 1&lt;BR /&gt;01.06.2018, 100102, INV_04, 18555, 2&lt;BR /&gt;01.06.2018, 100102, INV_05, 33445, 1&lt;BR /&gt;01.06.2018, 100103, INV_06, 25222, 2&lt;BR /&gt;01.06.2018, 100104, INV_07, 1520, 1&lt;BR /&gt;01.03.2019, 100106, INV_08, 1521, 2&lt;BR /&gt;01.03.2019, 100105, INV_09, 14582, 1&lt;BR /&gt;01.03.2019, 100103, INV_10, 12345, 2&lt;BR /&gt;01.03.2019, 100105, INV_11, 455, 1&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a pivot table with the following expressions and it works perfect so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression(Amount):&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression (Fullfillment):&lt;BR /&gt;if(Forecast = 'n.a.', 'no forecast',&lt;BR /&gt;(Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount)/Forecast))&lt;/P&gt;&lt;P&gt;Expression (Classification):&lt;BR /&gt;if(Fullfillment= 'no forecast', 'no forecast',&lt;BR /&gt;if(Fullfillment &amp;gt; 1.50, '&amp;gt;150',&lt;BR /&gt;if(Fullfillment &amp;gt; 1.10, '110-150',&lt;BR /&gt;if(Fullfillment &amp;gt; 0.90, '90-110',&lt;BR /&gt;if(Fullfillment &amp;gt;= 0.50, '50-90', '&amp;lt;50')))))&lt;/P&gt;&lt;P&gt;Background Color:&lt;BR /&gt;if(Fullfillment= 'no forecast', RGB(191, 191, 191),&lt;BR /&gt;if(Fullfillment &amp;gt; 1.50, RGB(0,102,255),&lt;BR /&gt;if(Fullfillment &amp;gt; 1.10, RGB(0,176,80),&lt;BR /&gt;if(Fullfillment &amp;gt; 0.90, RGB(146,208,80),&lt;BR /&gt;if(Fullfillment &amp;gt;= 0.50, RGB(255,192,0), RGB(255,0,0))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i need two Charts:&lt;BR /&gt;counting the items which are sold by years and the classification as single bars&lt;/P&gt;&lt;P&gt;I've tried already a couple of ways but cannot get to the right solution.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unkisoN_0-1614002359815.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49561iA1B11E721138B5A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unkisoN_0-1614002359815.png" alt="unkisoN_0-1614002359815.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2nd Chart I don't even know how to start:&lt;/P&gt;&lt;P&gt;I need to show the development of the Items based on the implementation Year and how long they are active:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unkisoN_1-1614002793368.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49564i109FD9C9AB4E878E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unkisoN_1-1614002793368.png" alt="unkisoN_1-1614002793368.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope i have explained my issues understandable &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 14:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1784746#M1209905</guid>
      <dc:creator>unkisoN</dc:creator>
      <dc:date>2021-02-22T14:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bar and Line Chart Questions</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1784895#M1209922</link>
      <description>&lt;P&gt;if i understand correctly the first chart has the buckets as dimensions - just use the following expression as calculated dimension:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(aggr(Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount), Impl_Year)= 'no forecast', 'no forecast',
if(aggr(Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount), Impl_Year) &amp;gt; 1.50, '&amp;gt;150',
if(aggr(Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount), Impl_Year) &amp;gt; 1.10, '110-150',
if(aggr(Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount), Impl_Year) &amp;gt; 0.90, '90-110',
if(aggr(Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount), Impl_Year) &amp;gt;= 0.50, '50-90', '&amp;lt;50')))))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 Feb 2021 18:47:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1784895#M1209922</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-02-22T18:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bar and Line Chart Questions</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1784896#M1209923</link>
      <description>&lt;P&gt;unfortunately, you can't reference your expression in your dimensions so you need to expand on it and you need to make it an AGGR to be allowed in dimensions&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 18:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1784896#M1209923</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-02-22T18:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bar and Line Chart Questions</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1784897#M1209924</link>
      <description>&lt;P&gt;the 2nd requirement doesn't appear to be straight forward so you need to supply more info instead of leting everyone guess using the chart&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 18:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1784897#M1209924</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-02-22T18:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bar and Line Chart Questions</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1785075#M1209950</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the reply, i will try and give you feedback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding 2nd requirement:&lt;/P&gt;&lt;P&gt;I have the following expression for every year:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({$&amp;lt; InvoiceType-={1} , Year={2018}&amp;gt;} Amount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({$&amp;lt; InvoiceType-={1} , Year={2019}&amp;gt;} Amount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This are the lines and this is working perfect already.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Problem i have is the years.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example ItemCode: 100103&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It was sold the first time in 2018 and it was sold 2019 as well&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ItemCode 100105 instead was implemented 2019 and therefore it was first sold in 2019&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now i need the comparison, how much of the ItemCode was sold in the first year of implementation and how the development is after the next years&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this explenation is good enough&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 08:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1785075#M1209950</guid>
      <dc:creator>unkisoN</dc:creator>
      <dc:date>2021-02-23T08:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Bar and Line Chart Questions</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1785306#M1209972</link>
      <description>&lt;P&gt;i think the key is finding the first year for each item and creating a common dimension that levels the different dates.&amp;nbsp; look at the attached&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2021 13:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1785306#M1209972</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-02-23T13:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bar and Line Chart Questions</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1785789#M1210032</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/58578"&gt;@edwin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution 2 worked perfect !&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About solution 1:&lt;/P&gt;&lt;P&gt;what do you mean with&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;you need to expand on it and you need to make it an AGGR to be allowed in dimensions"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You mean i should get the expression as aggr?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 13:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1785789#M1210032</guid>
      <dc:creator>unkisoN</dc:creator>
      <dc:date>2021-02-24T13:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bar and Line Chart Questions</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1786158#M1210062</link>
      <description>&lt;P&gt;when building expressions you can refer to other expression as such:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;if(Fullfillment= 'no forecast', 'no forecast',
if(Fullfillment &amp;gt; 1.50, '&amp;gt;150',
if(Fullfillment &amp;gt; 1.10, '110-150',
if(Fullfillment &amp;gt; 0.90, '90-110',
if(Fullfillment &amp;gt;= 0.50, '50-90', '&amp;lt;50')))))&lt;/LI-CODE&gt;&lt;P&gt;where Fulfillment is another expression&lt;/P&gt;&lt;P&gt;but you really need this as a dimension.&amp;nbsp; in dimensions you can get away with creating&amp;nbsp; expressions but you have to use AGGR and you cant refer to defined expressions you have to expand on Fulfillment:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=if(aggr(Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount), Impl_Year)= 'no forecast', 'no forecast',
if(aggr(Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount), Impl_Year) &amp;gt; 1.50, '&amp;gt;150',
if(aggr(Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount), Impl_Year) &amp;gt; 1.10, '110-150',
if(aggr(Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount), Impl_Year) &amp;gt; 0.90, '90-110',
if(aggr(Sum({$&amp;lt; InvoiceType-={1}&amp;gt;} Amount), Impl_Year) &amp;gt;= 0.50, '50-90', '&amp;lt;50')))))&lt;/LI-CODE&gt;&lt;P&gt;that is what i mean&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 12:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-and-Line-Chart-Questions/m-p/1786158#M1210062</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2021-02-25T12:54:24Z</dc:date>
    </item>
  </channel>
</rss>

