<?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: Need to Get the sum base on the date range in each Row in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-to-Get-the-sum-base-on-the-date-range-in-each-Row/m-p/2424610#M96010</link>
    <description>&lt;P&gt;so I suggest the following:&lt;BR /&gt;each row per item has a from and to date columns&lt;BR /&gt;we need to keep the rows that fall between the from and to in the GRN data for each Item&lt;BR /&gt;we can accomplish this using IntervalMatch&lt;BR /&gt;&lt;BR /&gt;so the script would look something like this:&lt;/P&gt;
&lt;P&gt;Sales:&lt;BR /&gt;load * from Sales.xlsx (this is a pseudo code)&lt;BR /&gt;&lt;BR /&gt;GRN:&lt;BR /&gt;load Code as ITEM_CODE&lt;BR /&gt;,&amp;nbsp;[Last GRN Date], [Last GRN to Date]&lt;/P&gt;
&lt;P&gt;from GRN.xlsx&lt;BR /&gt;&lt;BR /&gt;inner join IntervalMatch(DATE,ITEM_CODE)&lt;BR /&gt;load [Last GRN Date], [Last GRN to Date], ITEM_CODE&lt;BR /&gt;Resident GRN;&lt;BR /&gt;Drop Table GRN;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;this way records not falling within the Last GRN Date and Last GRN to Date will be eliminated&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;note: the item code field name in both tables should be named the same to match the date with the related item's ranges of dates&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 11:14:28 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2024-02-28T11:14:28Z</dc:date>
    <item>
      <title>Need to Get the sum base on the date range in each Row</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-Get-the-sum-base-on-the-date-range-in-each-Row/m-p/2424401#M95989</link>
      <description>&lt;P&gt;Hello, I have a data set and need to calculate the sales quantity using the &lt;STRONG&gt;*Last GRN date*&lt;/STRONG&gt; and &lt;STRONG&gt;*Last GRN to date*&lt;/STRONG&gt; columns in the pivot table I've shared below. The date ranges differ depending on the item code in each row. Could someone please help me how to write a measure to get the correct sales quantity based on Column(1) and Column(2).&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 04:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-Get-the-sum-base-on-the-date-range-in-each-Row/m-p/2424401#M95989</guid>
      <dc:creator>Ashanzulfick</dc:creator>
      <dc:date>2024-02-28T04:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to Get the sum base on the date range in each Row</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-Get-the-sum-base-on-the-date-range-in-each-Row/m-p/2424610#M96010</link>
      <description>&lt;P&gt;so I suggest the following:&lt;BR /&gt;each row per item has a from and to date columns&lt;BR /&gt;we need to keep the rows that fall between the from and to in the GRN data for each Item&lt;BR /&gt;we can accomplish this using IntervalMatch&lt;BR /&gt;&lt;BR /&gt;so the script would look something like this:&lt;/P&gt;
&lt;P&gt;Sales:&lt;BR /&gt;load * from Sales.xlsx (this is a pseudo code)&lt;BR /&gt;&lt;BR /&gt;GRN:&lt;BR /&gt;load Code as ITEM_CODE&lt;BR /&gt;,&amp;nbsp;[Last GRN Date], [Last GRN to Date]&lt;/P&gt;
&lt;P&gt;from GRN.xlsx&lt;BR /&gt;&lt;BR /&gt;inner join IntervalMatch(DATE,ITEM_CODE)&lt;BR /&gt;load [Last GRN Date], [Last GRN to Date], ITEM_CODE&lt;BR /&gt;Resident GRN;&lt;BR /&gt;Drop Table GRN;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;this way records not falling within the Last GRN Date and Last GRN to Date will be eliminated&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;note: the item code field name in both tables should be named the same to match the date with the related item's ranges of dates&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 11:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-Get-the-sum-base-on-the-date-range-in-each-Row/m-p/2424610#M96010</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2024-02-28T11:14:28Z</dc:date>
    </item>
  </channel>
</rss>

