<?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 Creating filter for month and year from a single date field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-filter-for-month-and-year-from-a-single-date-field/m-p/948540#M957495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working in a project where the date of my data base have only the month and year -&amp;gt; Oct/15&lt;/P&gt;&lt;P&gt;I am traying to create the distinct filters, one for month and another for year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i choose the field of the Date, it brings all the lines from the field into the table, as you can see below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mês.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/104076_mês.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;How can i create this filter showing only one option of October?&lt;/P&gt;&lt;P&gt;And how can i create another filter of year, showing only one option of 2015?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2015 21:17:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-11-05T21:17:26Z</dc:date>
    <item>
      <title>Creating filter for month and year from a single date field</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-filter-for-month-and-year-from-a-single-date-field/m-p/948540#M957495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working in a project where the date of my data base have only the month and year -&amp;gt; Oct/15&lt;/P&gt;&lt;P&gt;I am traying to create the distinct filters, one for month and another for year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i choose the field of the Date, it brings all the lines from the field into the table, as you can see below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mês.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/104076_mês.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;How can i create this filter showing only one option of October?&lt;/P&gt;&lt;P&gt;And how can i create another filter of year, showing only one option of 2015?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 21:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-filter-for-month-and-year-from-a-single-date-field/m-p/948540#M957495</guid>
      <dc:creator />
      <dc:date>2015-11-05T21:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating filter for month and year from a single date field</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-filter-for-month-and-year-from-a-single-date-field/m-p/948541#M957496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Mes) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Mes) as Month;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date#(Mes, 'MM/YYYY') as Mes&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yourotherfields&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Source&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 21:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-filter-for-month-and-year-from-a-single-date-field/m-p/948541#M957496</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-05T21:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating filter for month and year from a single date field</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-filter-for-month-and-year-from-a-single-date-field/m-p/948542#M957497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What Sunny suggested should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A list box shows only distinct values. When you see apparently duplicate lines, there must be a difference. Either the field values are pure text values, then they might differ in some 'invisible' chars, like spaces.&lt;/P&gt;&lt;P&gt;You can create an expression in your list box&lt;/P&gt;&lt;P&gt;=len(Mes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to see if the length is different for the lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or the values have an underlying numeric representation that differ (like a QV date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's what I assume, that you have date or timestamp values formatted as Month/Year. Add an expression to your list box to check this:&lt;/P&gt;&lt;P&gt;=num(Mes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Timestamp(Mes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my assumption is correct, it may be worth considering keeping the more granular value in your data model. And if the values show a numeric representation, you can directly use QV date functions like month() and year() without the need to interpret the value using Date#().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 22:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-filter-for-month-and-year-from-a-single-date-field/m-p/948542#M957497</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-05T22:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating filter for month and year from a single date field</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-filter-for-month-and-year-from-a-single-date-field/m-p/948543#M957498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't unless you have developer access and know scripting. The presentation has severe limitations for end users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 14:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-filter-for-month-and-year-from-a-single-date-field/m-p/948543#M957498</guid>
      <dc:creator />
      <dc:date>2017-09-05T14:26:04Z</dc:date>
    </item>
  </channel>
</rss>

