<?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: Help with a Simple Graph to track Balance in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-a-Simple-Graph-to-track-Balance/m-p/512125#M556193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw. It uses a cyclic group to switch between date, month and year. And uses the firstsortedvalue function to get the balance amount.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2013 11:36:06 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-07-23T11:36:06Z</dc:date>
    <item>
      <title>Help with a Simple Graph to track Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Simple-Graph-to-track-Balance/m-p/512124#M556192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a database of balance values, where each row has the balance for a given day, like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BDATE;&amp;nbsp;&amp;nbsp;&amp;nbsp; BALANCE &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; 4/1/2010;&amp;nbsp;&amp;nbsp; 74.016,72 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; 6/1/2010;&amp;nbsp; 74.538,97 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; 7/1/2010;&amp;nbsp; 74.452,66 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; 8/1/2010;&amp;nbsp; 74.749,34 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; 9/1/2010;&amp;nbsp; 74.789,94 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; 11/1/2010;&amp;nbsp; 74.789,94 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; 13/1/2010;&amp;nbsp; 74.805,88 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; 14/1/2010;&amp;nbsp; 74.879,12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp; 5/2/2011;&amp;nbsp; 89.529,14&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp; 6/3/2012;&amp;nbsp; 90.589,14&lt;/SPAN&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice that some days are not tracked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to build a line graph where I can see the balance trend. Also, need to view it sometimes on a daily view, sometimes per month and other times per year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I can not use "sum" on the graph cause then I would have the sum of the balances of the month for instance. That's not correct. On a monthly view, I could have for instance the latest balance value on the month , or the average balance value, or even, the balance of the very first day of the month. The same concept when regarded to a year view of the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have provided a sample kit, with data included, so that your tests can be easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your support and sorry for such a silly question ! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 11:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Simple-Graph-to-track-Balance/m-p/512124#M556192</guid>
      <dc:creator />
      <dc:date>2013-07-23T11:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Simple Graph to track Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Simple-Graph-to-track-Balance/m-p/512125#M556193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw. It uses a cyclic group to switch between date, month and year. And uses the firstsortedvalue function to get the balance amount.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 11:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Simple-Graph-to-track-Balance/m-p/512125#M556193</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-23T11:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Simple Graph to track Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Simple-Graph-to-track-Balance/m-p/512126#M556194</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I would tell you the logic, you try and let us know.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The logic is, you create a flag in script for each monthend date and one for yearend date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now when you are trying to show data say month wise balances then use that flag to show data as on that day only. and same for year end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 11:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Simple-Graph-to-track-Balance/m-p/512126#M556194</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-07-23T11:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Simple Graph to track Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Simple-Graph-to-track-Balance/m-p/512127#M556195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need create new table.&lt;/P&gt;&lt;P&gt;Use it:&lt;/P&gt;&lt;P&gt;load, if(), peek()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 11:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Simple-Graph-to-track-Balance/m-p/512127#M556195</guid>
      <dc:creator>Eugeny_Ilyin</dc:creator>
      <dc:date>2013-07-23T11:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Simple Graph to track Balance</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-Simple-Graph-to-track-Balance/m-p/512128#M556196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that at script level, I dont know when it's a month end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cause on the original data, I may not have the balance value for the end of month on the day that the month ends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, on January 2012, the month ends on 31th of January of course. But I may not have data values for that particular day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the other answer, from Mr Wassenaar, is more practical due to the firstsortedvalue function that "flows" over data in other to pick the correct value within the month (or year).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I understood what you said. Many times I create new fields during data load. I call those fields "derivated" fields and also use a standard suffix name for them, like "_DER" (from DERivated field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2013 12:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-Simple-Graph-to-track-Balance/m-p/512128#M556196</guid>
      <dc:creator />
      <dc:date>2013-07-23T12:01:48Z</dc:date>
    </item>
  </channel>
</rss>

