<?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: Set analysis With difference in date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-analysis-With-difference-in-date/m-p/1977215#M80632</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=sum({&amp;lt;[Shift Date]={"&amp;gt;='$(vStart)'&amp;lt;='$(vEnd)'"}&amp;gt;} Quantity)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am assuming that both Shift Date, vStart and vEnd are formated as your application default date format.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 04:49:26 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2022-09-06T04:49:26Z</dc:date>
    <item>
      <title>Set analysis With difference in date</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-With-difference-in-date/m-p/1977187#M80627</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to sum quantity based on input dates with below expression.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the user enters 0 to 10 in the days input then I need to sum up the quantities between days 0 to 9&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And if the user gives input has 18 to 25 , I need to some up quantities from 18 to 25 days&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;similarly , it needs to sum the quantity based on user input.&lt;BR /&gt;&lt;BR /&gt;So the beginning date in the shift date always has the current date. &lt;BR /&gt;&lt;BR /&gt;For example, if today is 2022-09-05. The Shift Date has date starting from 2022-09-05. And the end date is 70 days from current date.&lt;BR /&gt;&lt;BR /&gt;I'm not sure whether I've defined the variable in a correct way.&lt;BR /&gt;&lt;BR /&gt;Please, some one help let me know where I'm going wrong&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;=sum({&amp;lt;$(='[Shift Date]')={"&amp;gt;=$(vStart)&amp;lt;=$(vEnd)"}&amp;gt;} Quantity)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;output : 0&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The shift date is in the format, 2022-09-02.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm receiving 0 no matter the input I give on vStart and vEnd.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where the variables are defined as&amp;nbsp; vStart= 0 and vEnd = 0.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 02:05:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-With-difference-in-date/m-p/1977187#M80627</guid>
      <dc:creator>Husky_Bab12</dc:creator>
      <dc:date>2022-09-06T02:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis With difference in date</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-With-difference-in-date/m-p/1977215#M80632</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=sum({&amp;lt;[Shift Date]={"&amp;gt;='$(vStart)'&amp;lt;='$(vEnd)'"}&amp;gt;} Quantity)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am assuming that both Shift Date, vStart and vEnd are formated as your application default date format.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 04:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-With-difference-in-date/m-p/1977215#M80632</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2022-09-06T04:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis With difference in date</title>
      <link>https://community.qlik.com/t5/App-Development/Set-analysis-With-difference-in-date/m-p/1977225#M80636</link>
      <description>&lt;P&gt;use below&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Quantity={"&amp;gt;=$(vQuantityStart)&amp;lt;=$(vQuantityEnd)"},Date={"&amp;gt;=$(vMinDate)&amp;lt;=$(vMaxDate)"}&amp;gt;}Quantity)&lt;/P&gt;
&lt;P&gt;using attached Excel and&amp;nbsp; .qvf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you Can ENter min and Max Quanity , also Min Date and Result will Change according to entry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 05:19:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-analysis-With-difference-in-date/m-p/1977225#M80636</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2022-09-06T05:19:16Z</dc:date>
    </item>
  </channel>
</rss>

