<?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 Set modifier question - filter for Year not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524392#M1120656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've spent much time searching for what I think is an easy answer, but I haven't yet found the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do the simplest of formulas...I created a variable vOpptyCreatedYr = Year(OpptyCreatedDate).&amp;nbsp; Now I'm trying to create an expression that isn't working:&amp;nbsp; COUNT (DISTINCT {vOpptyCreatedYr={2013})&amp;gt;} DART__ID),&amp;nbsp; and while it says the expression is Ok, it is still not filtering for 2013 - there is an error/red error indicator beneath the open bracket just before the "2".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is simple but I can't find what I'm missing.&amp;nbsp; Thanks in advance for your help!&amp;nbsp;&amp;nbsp;&amp;nbsp; -Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 19:10:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-16T19:10:09Z</dc:date>
    <item>
      <title>Set modifier question - filter for Year not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524392#M1120656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've spent much time searching for what I think is an easy answer, but I haven't yet found the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do the simplest of formulas...I created a variable vOpptyCreatedYr = Year(OpptyCreatedDate).&amp;nbsp; Now I'm trying to create an expression that isn't working:&amp;nbsp; COUNT (DISTINCT {vOpptyCreatedYr={2013})&amp;gt;} DART__ID),&amp;nbsp; and while it says the expression is Ok, it is still not filtering for 2013 - there is an error/red error indicator beneath the open bracket just before the "2".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is simple but I can't find what I'm missing.&amp;nbsp; Thanks in advance for your help!&amp;nbsp;&amp;nbsp;&amp;nbsp; -Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 19:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524392#M1120656</guid>
      <dc:creator />
      <dc:date>2014-01-16T19:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier question - filter for Year not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524393#M1120657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An option without the variable (because you can't use a variable like that in set analysis):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT ({&amp;lt;OpptyCreatedDate={'&amp;gt;=$(=makedate(2013))&amp;lt;=$(=yearend(makedate(2013)))'}&amp;gt;}DISTINCT DART__ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you need to create a OpptyCreatedYear field in your load script, and then you can:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT ({&amp;lt;OpptyCreatedYear={2013}&amp;gt;}DISTINCT DART__ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 19:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524393#M1120657</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-16T19:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier question - filter for Year not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524394#M1120658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you do one thing create &lt;/P&gt;&lt;P&gt;year field at backend and &lt;/P&gt;&lt;P&gt;in front end use &lt;/P&gt;&lt;P&gt;Count({&amp;lt;Year={'2013'}&amp;gt;} distinct DART__ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 19:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524394#M1120658</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-01-16T19:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier question - filter for Year not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524395#M1120659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create Year in the Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year (OpptyCreatedDate) AS Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the use the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count ({&amp;lt;Year ={'2013'}&amp;gt;} DISTINCT DART_ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 19:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524395#M1120659</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-01-16T19:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier question - filter for Year not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524396#M1120660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you forgot &amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT (DISTINCT {&amp;lt;vOpptyCreatedYr={2013}&amp;gt;} DART__ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 19:55:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524396#M1120660</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2014-01-16T19:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier question - filter for Year not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524397#M1120661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like the idea of creating the year variable in the script...I'm just not sure where.&amp;nbsp; I can't do it in the SQL SELECT statment...so how do I get it in the table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524397#M1120661</guid>
      <dc:creator />
      <dc:date>2014-01-16T20:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier question - filter for Year not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524398#M1120662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YourTable:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(OpptyCreatedDate) as OpptyCreatedYear;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;whatever your stuff is here&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to summarize, you can do a preload to add the year as a field in addition to all of your other fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524398#M1120662</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-16T20:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier question - filter for Year not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524399#M1120663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;COUNT (DISTINCT if($(vOpptyCreatedYr)=2013, DART__ID))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524399#M1120663</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-01-16T20:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier question - filter for Year not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524400#M1120664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies.&amp;nbsp; In this case, I had 4 other filters to use in the expression, so I just used an COUNT(IF) statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 00:26:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-question-filter-for-Year-not-working/m-p/524400#M1120664</guid>
      <dc:creator />
      <dc:date>2014-01-31T00:26:12Z</dc:date>
    </item>
  </channel>
</rss>

