<?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: How to Exclude year Date from Filter Pane in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003718#M83110</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris, this is the your code with the IN&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Qualify *;&lt;/P&gt;
&lt;P&gt;Unqualify VIN_;&lt;/P&gt;
&lt;P&gt;[GSDPYearFilter]:&lt;BR /&gt;LOAD&lt;BR /&gt;[VIN_],&lt;BR /&gt;[GSDP.termstartdate_vp] AS YearFilter&lt;BR /&gt;&lt;BR /&gt;RESIDENT [BrandConnect_park_info_testUS]&lt;/P&gt;
&lt;P&gt;Where match([GSDP.termstartdate_vp],'2022','2023');&lt;/P&gt;
&lt;P&gt;Qliksense instead of using IN uses match,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did use the VIN_ which is the key and the tables are associated,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did use the unqualify keyword to associate this new table,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the Qualify to exclude&amp;nbsp;GSDP.termstartdate_vp and YearFilter from the association,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What have happened?&lt;/P&gt;
&lt;P&gt;It has created the table:&lt;/P&gt;
&lt;P&gt;[GSDPYearFilter.YearFilter] which I have used on the filter pane to look for the result of the script which should be 2022, 2023 as segment options, but instead of doing that there is no segment options, nor 2022, or 2023,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And If I use again on the filterpane the field&amp;nbsp;GSDP.termstartdate_vp shows back from 2021, 2022, and 2023 segment years options.&lt;/P&gt;
&lt;P&gt;I attach the result of this from the Data Model viewer on the screenshot(186) I understand this as the new field is not taking the dates from the original date field&amp;nbsp;GSDP.termstartdate_vp&lt;/P&gt;
&lt;P&gt;screenshot(188) shows the result on the filterpane when using the new field&amp;nbsp;[GSDPYearFilter.YearFilter]&lt;/P&gt;
&lt;P&gt;I am very grateful of your help&lt;/P&gt;
&lt;P&gt;Note: I have added the new field to the calendar so that I can use it on the filterpane&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 21:18:16 GMT</pubDate>
    <dc:creator>FelipeK16</dc:creator>
    <dc:date>2022-11-11T21:18:16Z</dc:date>
    <item>
      <title>How to Exclude year Date from Filter Pane</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003616#M83099</link>
      <description>&lt;P&gt;Hello friends,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been struggling with how to exclude a Year from the filter pane with no success,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I attach on the screenshot(179), the year 2021 must not be shown,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried a if condition but it doesn't works,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As:&lt;/P&gt;
&lt;P&gt;=if(Match(DateField,'2022','2023'),DateField)&lt;/P&gt;
&lt;P&gt;Another idea is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=Aggr(Only({1&amp;lt;year = {2022},{2023}&amp;gt;} DateField), DateField)&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 15:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003616#M83099</guid>
      <dc:creator>FelipeK16</dc:creator>
      <dc:date>2022-11-11T15:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude year Date from Filter Pane</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003679#M83103</link>
      <description>&lt;P&gt;If you're familiar with the data load editor, you could create a table of the years you want to include in your filter pane and use the year field from that table (&lt;EM&gt;YearFilter&lt;/EM&gt; from my example below)&amp;nbsp;as the dimension of your filter pane. The code might look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// ** years to include in filter pane **
FilterPaneYears:
LOAD
     RowID(),
     DateField AS YearFilter
RESIDENT ExampleTable
WHERE Year(DateField) IN (2022, 2023);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You use RESIDENT to reference a data table that has already been loaded into your app. The RowID() function just generates a key for the table and the DateField is just an assumption of what your date field might be named based on what you've provided in your initial post. ExampleTable is just the table you're using for your analysis (what you're using to reference data from 2022 and 2023). Hope that helps!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 18:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003679#M83103</guid>
      <dc:creator>Chris-Jones</dc:creator>
      <dc:date>2022-11-11T18:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude year Date from Filter Pane</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003685#M83104</link>
      <description>&lt;LI-CODE lang="markup"&gt;If(Year(DateField)&amp;gt;'2021',Year(DateField))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 11 Nov 2022 18:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003685#M83104</guid>
      <dc:creator>BrunPierre</dc:creator>
      <dc:date>2022-11-11T18:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude year Date from Filter Pane</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003692#M83105</link>
      <description>&lt;P&gt;Hi Brun this is working, let me give you some more context, when it is excluding the Year 2021, I have a condition on the addons of the KPI that pushes the user to select a year, so when the user is not selecting any year a message is popping out from the KPI as "Please Select a Year"&lt;/P&gt;
&lt;P&gt;for that purpose on the addon section of the KPI I have used&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GetSelectedCount([GSDP.termstartdate_vp.autoCalendar.Year])&lt;/P&gt;
&lt;P&gt;Now,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I select a X year on the filter pane, Qliksense is not reading the condition,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thinking that I should replace the field on GetSelectedCount([GSDP.termstartdate_vp.autoCalendar.Year]) for&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GetSelectedCount(If(Year([GSDP.termstartdate_vp.autoCalendar.Year])&amp;gt;'2021',Year([GSDP.termstartdate_vp.autoCalendar.Year])))&lt;/P&gt;
&lt;P&gt;Should fix the error, due to I am telling qliksense to read the entire formula first to show the data after selecting the year but this is not happening, do you have any clue why is this?&lt;/P&gt;
&lt;P&gt;I attach a screenshot(181) that can give you more context&lt;/P&gt;
&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 19:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003692#M83105</guid>
      <dc:creator>FelipeK16</dc:creator>
      <dc:date>2022-11-11T19:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude year Date from Filter Pane</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003706#M83107</link>
      <description>&lt;P&gt;Hi Chris thanks for your help&lt;/P&gt;
&lt;P&gt;I have made some syntax changes for qliksense&lt;/P&gt;
&lt;P&gt;[FilterPaneYears]:&lt;BR /&gt;LOAD&lt;BR /&gt;RowNo(),&lt;BR /&gt;GSDP.termstartdate_vp AS YearFilter&lt;BR /&gt;&lt;BR /&gt;RESIDENT [BrandConnect_park_info_testUS]&lt;/P&gt;
&lt;P&gt;Where [GSDP.termstartdate_vp]=('2022') AND ('2023');&lt;/P&gt;
&lt;P&gt;But is not working, do you see anything I am missing?&lt;/P&gt;
&lt;P&gt;It is loading without any problem, GSDP.termstartdate_vp is my date field name, the RowID which is from Oracle I have changed to RowNo&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RowNo( ),Returns an integer for the position of the current row in the resulting QlikView internal table.&amp;nbsp; RecNo () , which counts the records in the table of pure data, RowNo () function does not count&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;records&amp;nbsp;excluded by clause where&amp;nbsp; and is not reset when a pure table Concatenation with&amp;nbsp;another.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I attach the Data Island created from this solution on the screenshot(184) below,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 20:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003706#M83107</guid>
      <dc:creator>FelipeK16</dc:creator>
      <dc:date>2022-11-11T20:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude year Date from Filter Pane</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003715#M83108</link>
      <description>&lt;P&gt;Hey Felipe,&lt;/P&gt;
&lt;P&gt;It looks like your WHERE clause might be looking for years that are both 2022&amp;nbsp;&lt;EM&gt;and&lt;/EM&gt; 2023. You'll want something like 2022&amp;nbsp;&lt;EM&gt;or&lt;/EM&gt; 2023. Try this line of code again using IN with your data:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;WHERE [GSDP.termstartdate_vp] IN ('2022', '2023');&lt;/LI-CODE&gt;
&lt;P&gt;That should look for years that are 2022 &lt;EM&gt;or&lt;/EM&gt; 2023.&lt;/P&gt;
&lt;P&gt;Also, if you already have a key field from your&lt;SPAN&gt;&amp;nbsp;table BrandConnect_park_info_testUS, you can pull that over as your first field and skip the RowNo() function.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 20:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003715#M83108</guid>
      <dc:creator>Chris-Jones</dc:creator>
      <dc:date>2022-11-11T20:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude year Date from Filter Pane</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003718#M83110</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Chris, this is the your code with the IN&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Qualify *;&lt;/P&gt;
&lt;P&gt;Unqualify VIN_;&lt;/P&gt;
&lt;P&gt;[GSDPYearFilter]:&lt;BR /&gt;LOAD&lt;BR /&gt;[VIN_],&lt;BR /&gt;[GSDP.termstartdate_vp] AS YearFilter&lt;BR /&gt;&lt;BR /&gt;RESIDENT [BrandConnect_park_info_testUS]&lt;/P&gt;
&lt;P&gt;Where match([GSDP.termstartdate_vp],'2022','2023');&lt;/P&gt;
&lt;P&gt;Qliksense instead of using IN uses match,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did use the VIN_ which is the key and the tables are associated,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did use the unqualify keyword to associate this new table,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the Qualify to exclude&amp;nbsp;GSDP.termstartdate_vp and YearFilter from the association,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What have happened?&lt;/P&gt;
&lt;P&gt;It has created the table:&lt;/P&gt;
&lt;P&gt;[GSDPYearFilter.YearFilter] which I have used on the filter pane to look for the result of the script which should be 2022, 2023 as segment options, but instead of doing that there is no segment options, nor 2022, or 2023,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And If I use again on the filterpane the field&amp;nbsp;GSDP.termstartdate_vp shows back from 2021, 2022, and 2023 segment years options.&lt;/P&gt;
&lt;P&gt;I attach the result of this from the Data Model viewer on the screenshot(186) I understand this as the new field is not taking the dates from the original date field&amp;nbsp;GSDP.termstartdate_vp&lt;/P&gt;
&lt;P&gt;screenshot(188) shows the result on the filterpane when using the new field&amp;nbsp;[GSDPYearFilter.YearFilter]&lt;/P&gt;
&lt;P&gt;I am very grateful of your help&lt;/P&gt;
&lt;P&gt;Note: I have added the new field to the calendar so that I can use it on the filterpane&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 21:18:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003718#M83110</guid>
      <dc:creator>FelipeK16</dc:creator>
      <dc:date>2022-11-11T21:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Exclude year Date from Filter Pane</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003734#M83111</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a solution&lt;/P&gt;
&lt;P&gt;It is&lt;/P&gt;
&lt;P&gt;=aggr(Only({&amp;lt;GSDP.termstartdate_vp.autoCalendar.Year = {"&amp;gt;=$(=YearStart(Today()))"}&amp;gt;}&lt;BR /&gt;[GSDP.termstartdate_vp.autoCalendar.Year])&lt;BR /&gt;,GSDP.termstartdate_vp.autoCalendar.Year)&lt;/P&gt;
&lt;P&gt;Now it only shows the Years from 2022 and ahead of it.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 22:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Exclude-year-Date-from-Filter-Pane/m-p/2003734#M83111</guid>
      <dc:creator>FelipeK16</dc:creator>
      <dc:date>2022-11-11T22:49:09Z</dc:date>
    </item>
  </channel>
</rss>

