<?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 creating a line chart with different values and dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1656516#M507295</link>
    <description>&lt;P&gt;Hello, I would like to create a line chart with the target to make the future stock development visible.&lt;/P&gt;&lt;P&gt;Unfortunatly our data model is sometimes not usable.&lt;/P&gt;&lt;P&gt;As basis we have a table with current Stock value as monthly value -&amp;nbsp; The time period is month/year&lt;/P&gt;&lt;P&gt;The 2nd value includes the COG - also as monthly value - The time period is year and month&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 3rd value includes the future goods receipts. The time period is on daily base .&lt;/P&gt;&lt;P&gt;The calculation should be as follow.&amp;nbsp; C&lt;FONT color="#FF0000"&gt;urrent - COG + future goods receipt.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;The problem is because of different dimensions. In the data model there is no join between the tables.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Is it possible to make a calculation without any loading of data before ?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 13:36:02 GMT</pubDate>
    <dc:creator>MichaelFL</dc:creator>
    <dc:date>2019-12-11T13:36:02Z</dc:date>
    <item>
      <title>creating a line chart with different values and dimension</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1656516#M507295</link>
      <description>&lt;P&gt;Hello, I would like to create a line chart with the target to make the future stock development visible.&lt;/P&gt;&lt;P&gt;Unfortunatly our data model is sometimes not usable.&lt;/P&gt;&lt;P&gt;As basis we have a table with current Stock value as monthly value -&amp;nbsp; The time period is month/year&lt;/P&gt;&lt;P&gt;The 2nd value includes the COG - also as monthly value - The time period is year and month&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 3rd value includes the future goods receipts. The time period is on daily base .&lt;/P&gt;&lt;P&gt;The calculation should be as follow.&amp;nbsp; C&lt;FONT color="#FF0000"&gt;urrent - COG + future goods receipt.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;The problem is because of different dimensions. In the data model there is no join between the tables.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Is it possible to make a calculation without any loading of data before ?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 13:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1656516#M507295</guid>
      <dc:creator>MichaelFL</dc:creator>
      <dc:date>2019-12-11T13:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: creating a line chart with different values and dimension</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1656758#M507296</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you share some made up/sample data with a picture of what the output would look like?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 20:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1656758#M507296</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2019-12-11T20:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: creating a line chart with different values and dimension</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1657094#M507298</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlik.JPG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25431i7B8751DF41094149/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlik.JPG" alt="qlik.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 13:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1657094#M507298</guid>
      <dc:creator>MichaelFL</dc:creator>
      <dc:date>2019-12-12T13:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: creating a line chart with different values and dimension</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1657312#M507299</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There will be a more elegant way of setting up the ValueList (or using ValueLoop), but the following may help (based off the toy script at the bottom);&lt;/P&gt;&lt;P&gt;Dimension holds ValueList;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20191212_1.png" style="width: 859px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25463i73E8F5FA17C716D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="20191212_1.png" alt="20191212_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Expression uses the dates in ValueList;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20191212_2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25464i892E8030782EB982/image-size/large?v=v2&amp;amp;px=999" role="button" title="20191212_2.png" alt="20191212_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this gets you started, sure it can be improved.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;P&gt;PS my dates are in UK format&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;future_goods:
LOAD * INLINE [
    FG Date, FG Value
    11/12/2019, 1000
    12/12/2019, 3000
    06/01/2020, 5000
    05/02/2020, 1000
];

current_stock:
LOAD * INLINE [
    CS Date, CS Value
    01/12/2019, 5000
];

cog:
LOAD * INLINE [
    COG Date, COG Value
    01/12/2019, 2000
    01/01/2020, 1000
    01/02/2020, 2000
];&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Dec 2019 21:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1657312#M507299</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2019-12-12T21:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: creating a line chart with different values and dimension</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1657418#M507300</link>
      <description>&lt;P&gt;First of all thank you for providing a solution. It is understandable.&lt;/P&gt;&lt;P&gt;My question in this regard is how it works with the different formats of dimension.&lt;/P&gt;&lt;P&gt;For example, one loadscipt is with 12.2019 the other with Dec.2019.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I have no access to change the scripts in the load editor. I have to find a solution with the function editor only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 06:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1657418#M507300</guid>
      <dc:creator>MichaelFL</dc:creator>
      <dc:date>2019-12-13T06:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: creating a line chart with different values and dimension</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1657448#M507301</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You are going to have to get into the (in my opinion) thorny world of manipulating dates (is not my favourite bit of QlikView). So something like the below change to the expression referencing the month only may work;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;sum(If(Date#('01-'&amp;amp;[CS Date],'DD-MMM-YY')&amp;lt;=MonthEnd(Date(ValueList('01/12/2019','01/01/2020','01/02/2020'))),[CS Value],0))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Let me know if that helps.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Cheers, Chris.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 08:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1657448#M507301</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2019-12-13T08:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: creating a line chart with different values and dimension</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1659080#M507302</link>
      <description>&lt;P&gt;Michael, I think Chris got you on the right track, here are a couple of Design Blog links that may prove useful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Date-Function/ba-p/1463157" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Date-Function/ba-p/1463157&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Why-don-t-my-dates-work/ba-p/1465849" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Why-don-t-my-dates-work/ba-p/1465849&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is the base Design Blog URL in case you want to do some searching yourself too, there are hundreds of posts out here, all from our internal experts and vast majority are how-to related.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Do not forget to use the Accept as Solution button on any posts you get that help you with a solution too, this gives the poster credit for the help and lets the other Community Members know what worked...&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 16:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-line-chart-with-different-values-and-dimension/m-p/1659080#M507302</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-18T16:35:11Z</dc:date>
    </item>
  </channel>
</rss>

