<?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 Set analysis sum between two given dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281476#M104686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i want to calculate sum between two given dates using set analysis. I am want to use greater than or equal to startdate and less than or equal to Enddate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this formula. but its not working even for 1 condition. How to use less than or equal to condition in ths formula??/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;OrderDate&amp;gt;={StartDate}&amp;gt;} Netamountpaid )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Lavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Aug 2011 09:05:37 GMT</pubDate>
    <dc:creator>harleen_singh</dc:creator>
    <dc:date>2011-08-18T09:05:37Z</dc:date>
    <item>
      <title>Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281476#M104686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i want to calculate sum between two given dates using set analysis. I am want to use greater than or equal to startdate and less than or equal to Enddate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this formula. but its not working even for 1 condition. How to use less than or equal to condition in ths formula??/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;OrderDate&amp;gt;={StartDate}&amp;gt;} Netamountpaid )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Lavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281476#M104686</guid>
      <dc:creator>harleen_singh</dc:creator>
      <dc:date>2011-08-18T09:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281477#M104687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you need to add this into the set expression writing something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;OrderDate={'&amp;lt;=$(=only(StartDate))'}&amp;gt;} Netamountpaid )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281477#M104687</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2011-08-18T09:09:19Z</dc:date>
    </item>
    <item>
      <title>Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281478#M104688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Using following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿sum({$&amp;lt;OrderDate={"&amp;gt;=StartDate&amp;lt;=Enddate"}&amp;gt;Netamountpaid)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281478#M104688</guid>
      <dc:creator />
      <dc:date>2011-08-18T09:11:52Z</dc:date>
    </item>
    <item>
      <title>Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281479#M104689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; thanks for the response. in your formula what is StartDate??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it variable or field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is variable then where to define it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my formula StartDate is field name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harleen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281479#M104689</guid>
      <dc:creator>harleen_singh</dc:creator>
      <dc:date>2011-08-18T09:23:42Z</dc:date>
    </item>
    <item>
      <title>Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281480#M104690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/venkatreddy" id="jive-38752093362381597201" style="font-size: 12px; color: #007fc0; font-weight: bold;"&gt;venkatreddy&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;thanks for the response. in your formula what is StartDate??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it variable or field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is variable then where to define it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my formula StartDate is field name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harleen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 09:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281480#M104690</guid>
      <dc:creator>harleen_singh</dc:creator>
      <dc:date>2011-08-18T09:54:37Z</dc:date>
    </item>
    <item>
      <title>Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281481#M104691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; field Name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 10:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281481#M104691</guid>
      <dc:creator />
      <dc:date>2011-08-18T10:04:57Z</dc:date>
    </item>
    <item>
      <title>Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281482#M104692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, yes i was also assuming it was a field name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 10:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281482#M104692</guid>
      <dc:creator>sbaldwin</dc:creator>
      <dc:date>2011-08-18T10:32:34Z</dc:date>
    </item>
    <item>
      <title>Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281483#M104693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;venkatreddy's solution will work, but only if StartDate and EndDate are limited to one value in current selection.&lt;/P&gt;&lt;P&gt;For example, if a user selects none or more than one Date, the expression will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could combine the expression with a dollar sign expansion to handle date ranges:&lt;/P&gt;&lt;P&gt;= sum({&amp;lt;OrderDate= {"&amp;gt;=$(=min(StartDate))&amp;lt;=$(=max(EndDate))"}&amp;gt; } Netamountpaid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are not using StartDate and EndDate as dimensions in a table, with above expression, else you are running into troubles, since the set analysis will not care about the dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 10:38:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281483#M104693</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-08-18T10:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281484#M104694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will the same expression works for current year and last year data as well, i tried below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For current year &lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year = {$(=max(Year))},Date={"&amp;gt;=$(=min(Promo_Date_From))&amp;lt;=$(=max(Promo_Date_To))"}&amp;gt;} [Net Sales])&lt;/P&gt;&lt;P&gt;here am usning promo event as dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's giving 0 as output. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sadasiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jul 2017 09:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281484#M104694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-02T09:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281485#M104695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m using a set analysis expression . in my report i m showing data for LMTD.&amp;nbsp; In Dimension i have LinkCommonDate and used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(LinkCommonDate&amp;gt;=$(v1MonthMinDate),Date(LinkCommonDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;SPAN style="font-size: 13.3333px;"&gt;v1MonthMinDate is floor(Date(MonthStart( AddMonths( max(SurveyDate)&amp;nbsp;&amp;nbsp; ,-1)),'YYYY-MM-DD'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i m selecting a particular dealer it does not consider LM&lt;SPAN style="font-size: 13.3333px;"&gt;TD rule&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; and gives data &lt;SPAN style="font-size: 13.3333px;"&gt;for other months also&lt;/SPAN&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should i restrict my Date Dimension in report to show data for LMTD only .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jul 2017 11:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281485#M104695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-02T11:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281486#M104696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;@Stefan Wühl&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 20px;"&gt;please help&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jul 2017 11:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281486#M104696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-02T11:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281487#M104697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Usually in this kind of scenario for start and end date we go with Variable trigger.&lt;/P&gt;&lt;P&gt;For start and end date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Jul 2017 13:54:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281487#M104697</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2017-07-02T13:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281488#M104698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;I have some queries and i have posted in community also but no one are responding to my queries.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Can you help me for this query..:=Sum({&amp;lt;Floor(Today()-30)-Floor([Closed date])&amp;gt;}[No. of CV Submitted])&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;I wrote this expression for bar chart but it is giving error&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;My requirement is i want to calculate date difference from closed date to last 30 days for resumes submitted column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Please help me out from this&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 10:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/281488#M104698</guid>
      <dc:creator>bvssudhakar</dc:creator>
      <dc:date>2018-08-09T10:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis sum between two given dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/1524668#M438315</link>
      <description>Hi Stefan,&lt;BR /&gt;&lt;BR /&gt;If the startDate and EndDate as the dimensions in a table, which mean each rows contain different StratDate and EndDate, how this this can be done on set analysis?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 28 Dec 2018 05:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-sum-between-two-given-dates/m-p/1524668#M438315</guid>
      <dc:creator>steve1982</dc:creator>
      <dc:date>2018-12-28T05:38:38Z</dc:date>
    </item>
  </channel>
</rss>

