<?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 based on dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32634#M785883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dates in set analysis have to be in the text form, so try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;[Date Use]={"&amp;gt;=$(&lt;SPAN style="color: #000000;"&gt;=Date(&lt;/SPAN&gt;v_DateUse_1&lt;SPAN style="color: #000000;"&gt;,'DD/MM/YYYY'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;) &amp;lt;=$(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Date(&lt;/SPAN&gt;v_DateUse_2&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; color: #000000;"&gt;,'DD/MM/YYYY'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; color: #000000;"&gt;)&lt;/SPAN&gt;)"}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;[Amount_used]&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2018 11:25:04 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2018-03-01T11:25:04Z</dc:date>
    <item>
      <title>Set analysis based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32633#M785882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart which displays gift voucher usage by store. The data model is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- a voucher is issued by one store and its number is unique&lt;/P&gt;&lt;P&gt;- vouchers can be used partially in different stores (for example: 5€ in store A, then 10€ in store B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one QV fact table with all voucher issued and another table with voucher usage. The link between the two tables is natural and based on the voucher code since it is unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now, it should be possible to filter the chart based on a date range (start date and end date selected by the user). The problem is with the set analysis based on this period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use two variables for the dates selection: v_DateUse_1 (start date) and v_DateUse_2 (end date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the following screenshot the expression "Amount used" &lt;SPAN style="font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #0000ff;"&gt;Sum([Amount_used])&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; which does not take into account the date selection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I change the expression to = &lt;SPAN style="color: #0000ff;"&gt;Sum({&amp;lt;[Date Use]={"&amp;gt;=$(v_DateUse_1) &amp;lt;=$(v_DateUse_2)"}&amp;gt;} &lt;SPAN style="font-size: 13.3333px;"&gt;[Amount_used]&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the chart displays no result (see screenshot below). And I don't know why.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195038_Capture.JPG" style="height: 284px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/195039_Capture2.JPG" style="height: 207px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32633#M785882</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32634#M785883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dates in set analysis have to be in the text form, so try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;[Date Use]={"&amp;gt;=$(&lt;SPAN style="color: #000000;"&gt;=Date(&lt;/SPAN&gt;v_DateUse_1&lt;SPAN style="color: #000000;"&gt;,'DD/MM/YYYY'&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;) &amp;lt;=$(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Date(&lt;/SPAN&gt;v_DateUse_2&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; color: #000000;"&gt;,'DD/MM/YYYY'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; color: #000000;"&gt;)&lt;/SPAN&gt;)"}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;[Amount_used]&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 11:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32634#M785883</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2018-03-01T11:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32635#M785884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;A good tip for debugging these kind of problems is to create a straight table&amp;nbsp; where you leave the label for the expression blank. The header of the table will diaplay how the $ sign expansions are evaluated like&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG __jive_id="194575" alt="Debug$inSet.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195041_Debug$inSet.png" style="height: 89px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 11:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32635#M785884</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2018-03-01T11:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32636#M785885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A good place to read on this topic is&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 11:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32636#M785885</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-01T11:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32637#M785886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried it but it doesn't work. The problem concerns particularly Date Use. If I put Date Issue the expression works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 14:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32637#M785886</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2018-03-01T14:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32638#M785887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see there is a time fraction for Date Use, try loading Date Use with Floor to remove the time portion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Floor([Date Use]) as [Date Use]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32638#M785887</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2018-03-01T15:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis based on dates</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32639#M785888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this was the reason &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-based-on-dates/m-p/32639#M785888</guid>
      <dc:creator>edemerdjieva</dc:creator>
      <dc:date>2018-03-01T15:22:07Z</dc:date>
    </item>
  </channel>
</rss>

