<?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: Comparing Data over Several Months Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-Data-over-Several-Months-Issue/m-p/1509429#M749897</link>
    <description>&lt;P&gt;Your statement "&lt;SPAN&gt;When I import the data I Order it by AssetId, VolumeType&amp;nbsp; and VolumeReadDate asc;"&lt;BR /&gt;&lt;BR /&gt;Does this mean that you are ordering it in the load statement, or is this your Order By clause in the SQL query (from your database)?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Nov 2018 04:42:30 GMT</pubDate>
    <dc:creator>lblumenfeld</dc:creator>
    <dc:date>2018-11-20T04:42:30Z</dc:date>
    <item>
      <title>Comparing Data over Several Months Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Data-over-Several-Months-Issue/m-p/1508877#M749895</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;We moved from reading data from CSVs that were ordered by Filename to now reading straight from a SQL table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table like below:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Id&lt;/TD&gt;&lt;TD&gt;AssetId&lt;/TD&gt;&lt;TD&gt;VolumeType&lt;/TD&gt;&lt;TD&gt;VolumeReadDate&lt;/TD&gt;&lt;TD&gt;VolumeCount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7005B82F-277F-4A33-88C9-8B81EDCA0E6F&lt;/TD&gt;&lt;TD&gt;08678C88-A544-426A-82A3-64FB157C729A&lt;/TD&gt;&lt;TD&gt;Total Impressions&lt;/TD&gt;&lt;TD&gt;31/01/2016&lt;/TD&gt;&lt;TD&gt;1832&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;80065A54-CBC7-4527-83E2-5A1D0B0B13A0&lt;/TD&gt;&lt;TD&gt;08678C88-A544-426A-82A3-64FB157C729A&lt;/TD&gt;&lt;TD&gt;Total Impressions&lt;/TD&gt;&lt;TD&gt;28/02/2016&lt;/TD&gt;&lt;TD&gt;21339&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;481044CA-F35A-43DD-B34D-402FB0834C52&lt;/TD&gt;&lt;TD&gt;08678C88-A544-426A-82A3-64FB157C729A&lt;/TD&gt;&lt;TD&gt;Total Impressions&lt;/TD&gt;&lt;TD&gt;31/03/2016&lt;/TD&gt;&lt;TD&gt;41460&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4524C0F1-626F-4EAD-A6A5-E24D8ED7AE27&lt;/TD&gt;&lt;TD&gt;08678C88-A544-426A-82A3-64FB157C729A&lt;/TD&gt;&lt;TD&gt;Total Impressions&lt;/TD&gt;&lt;TD&gt;27/04/2016&lt;/TD&gt;&lt;TD&gt;56704&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0E192A41-070F-4EC7-8531-371C9703821B&lt;/TD&gt;&lt;TD&gt;0A6FCB8A-CB59-4439-8695-A9E9B0DA969E&lt;/TD&gt;&lt;TD&gt;Total Impressions&lt;/TD&gt;&lt;TD&gt;31/12/2015&lt;/TD&gt;&lt;TD&gt;5232&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;79EA47AC-529A-4DF5-B2A5-DBADB7772A75&lt;/TD&gt;&lt;TD&gt;0A6FCB8A-CB59-4439-8695-A9E9B0DA969E&lt;/TD&gt;&lt;TD&gt;Total Impressions&lt;/TD&gt;&lt;TD&gt;08/01/2016&lt;/TD&gt;&lt;TD&gt;5240&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C25A300D-D641-4A3D-9575-ACBBF0363574&lt;/TD&gt;&lt;TD&gt;0EB4FE2D-1250-48AF-8353-D4EB12071C06&lt;/TD&gt;&lt;TD&gt;Total Impressions&lt;/TD&gt;&lt;TD&gt;22/12/2015&lt;/TD&gt;&lt;TD&gt;89021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;751C4D82-9E63-4234-9C7A-DFF78A1EECED&lt;/TD&gt;&lt;TD&gt;0EB4FE2D-1250-48AF-8353-D4EB12071C06&lt;/TD&gt;&lt;TD&gt;Total Impressions&lt;/TD&gt;&lt;TD&gt;31/01/2016&lt;/TD&gt;&lt;TD&gt;90583&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;666673B9-58DC-4B04-8072-7D7A1AF882FD&lt;/TD&gt;&lt;TD&gt;0EB4FE2D-1250-48AF-8353-D4EB12071C06&lt;/TD&gt;&lt;TD&gt;Total Impressions&lt;/TD&gt;&lt;TD&gt;29/02/2016&lt;/TD&gt;&lt;TD&gt;92164&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;38D02F4D-6F88-4CC6-899F-9B50971FB46F&lt;/TD&gt;&lt;TD&gt;0EB4FE2D-1250-48AF-8353-D4EB12071C06&lt;/TD&gt;&lt;TD&gt;Total Impressions&lt;/TD&gt;&lt;TD&gt;31/03/2016&lt;/TD&gt;&lt;TD&gt;93544&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;FD5E6D83-2B84-4D07-8FA7-081A3511BFAB&lt;/TD&gt;&lt;TD&gt;0EB4FE2D-1250-48AF-8353-D4EB12071C06&lt;/TD&gt;&lt;TD&gt;Total Impressions&lt;/TD&gt;&lt;TD&gt;29/04/2016&lt;/TD&gt;&lt;TD&gt;94788&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to compare the Volumes over months (so the day of the month could depend on the readings received)&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Date: 29/04/16 Read: 94788&lt;/P&gt;&lt;P&gt;Date: 31/03/16 Read: 93544&lt;/P&gt;&lt;P&gt;So April Volume is therefor 1,244&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying the below but I believe it's not working because the SQL database will just look at Row number instead, there is no order to how the data is populated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Previous([Volume Type]) = [Volume Type] AND&lt;BR /&gt;Previous([Serial Number]) = [Serial Number] AND&lt;BR /&gt;Previous(Date([Volume Read Date]))&amp;lt;Date([Volume Read Date]) ,&lt;BR /&gt;[Volume Count] - Previous([Volume Count])) as Volume,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I import the data I Order it by AssetId, VolumeType&amp;nbsp; and VolumeReadDate asc;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Craig&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Data-over-Several-Months-Issue/m-p/1508877#M749895</guid>
      <dc:creator>craig157</dc:creator>
      <dc:date>2024-11-16T21:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Data over Several Months Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Data-over-Several-Months-Issue/m-p/1509429#M749897</link>
      <description>&lt;P&gt;Your statement "&lt;SPAN&gt;When I import the data I Order it by AssetId, VolumeType&amp;nbsp; and VolumeReadDate asc;"&lt;BR /&gt;&lt;BR /&gt;Does this mean that you are ordering it in the load statement, or is this your Order By clause in the SQL query (from your database)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Nov 2018 04:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Data-over-Several-Months-Issue/m-p/1509429#M749897</guid>
      <dc:creator>lblumenfeld</dc:creator>
      <dc:date>2018-11-20T04:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Data over Several Months Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Data-over-Several-Months-Issue/m-p/1511003#M749898</link>
      <description>&lt;P&gt;Found the solution was to utilise the Above Function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Volume - above(TOTAL sum(Volume))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has fixed all the problems &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 10:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Data-over-Several-Months-Issue/m-p/1511003#M749898</guid>
      <dc:creator>craig157</dc:creator>
      <dc:date>2018-11-22T10:38:05Z</dc:date>
    </item>
  </channel>
</rss>

