<?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 Date..From/To selection using Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-From-To-selection-using-Set-Analysis/m-p/540652#M202079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small subset of my schema looks as follows:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43629" class="jive-image-thumbnail jive-image" onclick="" alt="screen1.jpg" src="https://community.qlik.com/legacyfs/online/43629_screen1.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;My rich &lt;STRONG&gt;Calendar &lt;/STRONG&gt;table is linked to my Fact table via the &lt;STRONG&gt;AcceptDate &lt;/STRONG&gt;field and all the date related selections work as expected. Selecting &lt;STRONG&gt;Year&lt;/STRONG&gt;, &lt;STRONG&gt;Quarter, Month &lt;/STRONG&gt;etc works as expected returning all the correct data in the table and "&lt;STRONG&gt;Filters&lt;/STRONG&gt;" Multi-select box (see below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user however has requested a "Start Date" "End Date" facility which I have built for them utilising variable &lt;STRONG&gt;vStartDate &lt;/STRONG&gt;and &lt;STRONG&gt;vEndDate &lt;/STRONG&gt;for calculating the amount totals in the table using Set Analysis as shown below - this also works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({&amp;lt; AcceptDate = {'&amp;gt;=$(=Date(vStartDate))&amp;lt;=$(=Date(vEndDate))'} &amp;gt;} CUSTOMSAMOUNT)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Problem&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The available options in the "Filters" multi-box do not truly reflect reality as they &lt;/SPAN&gt;&lt;EM style="font-size: 10pt;"&gt;ignore &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;the date range selected and you may be presented with a selection which when chosen does not generate results. Can anyone suggest an approach that will cater for this anomaly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43634" class="jive-image-thumbnail jive-image" onclick="" alt="screen2.jpg" src="https://community.qlik.com/legacyfs/online/43634_screen2.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jul 2013 11:51:15 GMT</pubDate>
    <dc:creator>alexis</dc:creator>
    <dc:date>2013-07-04T11:51:15Z</dc:date>
    <item>
      <title>Date..From/To selection using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-From-To-selection-using-Set-Analysis/m-p/540652#M202079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small subset of my schema looks as follows:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43629" class="jive-image-thumbnail jive-image" onclick="" alt="screen1.jpg" src="https://community.qlik.com/legacyfs/online/43629_screen1.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;My rich &lt;STRONG&gt;Calendar &lt;/STRONG&gt;table is linked to my Fact table via the &lt;STRONG&gt;AcceptDate &lt;/STRONG&gt;field and all the date related selections work as expected. Selecting &lt;STRONG&gt;Year&lt;/STRONG&gt;, &lt;STRONG&gt;Quarter, Month &lt;/STRONG&gt;etc works as expected returning all the correct data in the table and "&lt;STRONG&gt;Filters&lt;/STRONG&gt;" Multi-select box (see below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user however has requested a "Start Date" "End Date" facility which I have built for them utilising variable &lt;STRONG&gt;vStartDate &lt;/STRONG&gt;and &lt;STRONG&gt;vEndDate &lt;/STRONG&gt;for calculating the amount totals in the table using Set Analysis as shown below - this also works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum({&amp;lt; AcceptDate = {'&amp;gt;=$(=Date(vStartDate))&amp;lt;=$(=Date(vEndDate))'} &amp;gt;} CUSTOMSAMOUNT)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Problem&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The available options in the "Filters" multi-box do not truly reflect reality as they &lt;/SPAN&gt;&lt;EM style="font-size: 10pt;"&gt;ignore &lt;/EM&gt;&lt;SPAN style="font-size: 10pt;"&gt;the date range selected and you may be presented with a selection which when chosen does not generate results. Can anyone suggest an approach that will cater for this anomaly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43634" class="jive-image-thumbnail jive-image" onclick="" alt="screen2.jpg" src="https://community.qlik.com/legacyfs/online/43634_screen2.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 11:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-From-To-selection-using-Set-Analysis/m-p/540652#M202079</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2013-07-04T11:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date..From/To selection using Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-From-To-selection-using-Set-Analysis/m-p/540653#M202080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this tutorial is what you need: &lt;A _jive_internal="true" href="https://community.qlik.com/thread/67712" style="background-color: #ffffff; font-size: 12px; color: #007fc0; font-family: Arial;"&gt;Selecting Arbitrary Date Ranges&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 12:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-From-To-selection-using-Set-Analysis/m-p/540653#M202080</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-04T12:06:44Z</dc:date>
    </item>
  </channel>
</rss>

