<?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: Converting Current Year &amp;amp; Month Selection Into Date for Set Analysis Filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572819#M456828</link>
    <description>&lt;P&gt;Basically the logic is somewhat a combination of:&lt;/P&gt;&lt;P&gt;- if no month is selected, display data for current month&lt;/P&gt;&lt;P&gt;- if no year is selected, display data for current year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part I'm struggling with now is when a Year is selected, but no Month selected... and let's just use the example where they choose 2018 as the Year, how do I filter to display data for today's month (April), but from the year 2018 (basically data for April 1st 2018 - April 30th 2018).&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2019 14:34:28 GMT</pubDate>
    <dc:creator>benvatvandata</dc:creator>
    <dc:date>2019-04-24T14:34:28Z</dc:date>
    <item>
      <title>Converting Current Year &amp; Month Selection Into Date for Set Analysis Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572367#M456823</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have looked around in the community for a solution to this, but can't seem to find one that matches what I need.&lt;/P&gt;&lt;P&gt;My issue is: When a Month is selected and Year NOT selected... I need my expression to filter a specific date field (i.e. [Bill Date]) on the Current Year AND the Month that is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if April is selected and no year selection is made, I need my set analysis to do the equivalent of:&lt;/P&gt;&lt;P&gt;[Bill Date] = {"&amp;lt;=$(=date('2019-04-30','MM/DD/YYYY') )&amp;gt;=$(=date('2019-04-01','MM/DD/YYYY'))"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part I can't figure out is how to do it WITHOUT any triggers, scripting, or variables... Does anyone know how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572367#M456823</guid>
      <dc:creator>benvatvandata</dc:creator>
      <dc:date>2024-11-16T21:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Current Year &amp; Month Selection Into Date for Set Analysis Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572374#M456824</link>
      <description>&lt;P&gt;The easiest is you create a Month/Year Bill field in your data model, and use in the set analysis only:&lt;/P&gt;&lt;P&gt;{&amp;lt;[Month/Year Bill]={"$(=MonthName(Max([Month/Year Bill])))"}&amp;gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 02:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572374#M456824</guid>
      <dc:creator>felipe_dutra</dc:creator>
      <dc:date>2019-04-24T02:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Current Year &amp; Month Selection Into Date for Set Analysis Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572391#M456825</link>
      <description>&lt;P&gt;Perhaps this way?&lt;BR /&gt;&lt;STRONG&gt;If(GetSelectedCount(Month)&amp;gt;0 and GetSelectedCount(Year)=0, Sum({&amp;lt;[Bill Date]={"&amp;gt;=Date(MonthStart(Max([Bill Date])),'MM/DD/YYYY'))&amp;lt;=$(=Date(MonthEnd(Max([Bill Date])),'MM/DD/YYYY'))"}&amp;gt;} Measure), Sum(Measure))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 04:28:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572391#M456825</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-04-24T04:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Current Year &amp; Month Selection Into Date for Set Analysis Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572399#M456826</link>
      <description>How did you know if no year is selected then for which year it should show data.&lt;BR /&gt;Like you suggested,&lt;BR /&gt;if April is selected then it should capture data for Apr 2019 not for Apr 2018 or any other year??&lt;BR /&gt;Is there any logic behind it?</description>
      <pubDate>Wed, 24 Apr 2019 04:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572399#M456826</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2019-04-24T04:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Current Year &amp; Month Selection Into Date for Set Analysis Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572816#M456827</link>
      <description>&lt;P&gt;I had to modify this slightly, but this actually worked for the scenario I gave!&amp;nbsp;&lt;/P&gt;&lt;P&gt;However... now I'm struggling with the scenario where a Year is selected, but no month selection...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example: If 2018 is selected, I want data for April 2018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 14:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572816#M456827</guid>
      <dc:creator>benvatvandata</dc:creator>
      <dc:date>2019-04-24T14:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Current Year &amp; Month Selection Into Date for Set Analysis Filter</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572819#M456828</link>
      <description>&lt;P&gt;Basically the logic is somewhat a combination of:&lt;/P&gt;&lt;P&gt;- if no month is selected, display data for current month&lt;/P&gt;&lt;P&gt;- if no year is selected, display data for current year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part I'm struggling with now is when a Year is selected, but no Month selected... and let's just use the example where they choose 2018 as the Year, how do I filter to display data for today's month (April), but from the year 2018 (basically data for April 1st 2018 - April 30th 2018).&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 14:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-Current-Year-amp-Month-Selection-Into-Date-for-Set/m-p/1572819#M456828</guid>
      <dc:creator>benvatvandata</dc:creator>
      <dc:date>2019-04-24T14:34:28Z</dc:date>
    </item>
  </channel>
</rss>

