<?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: Set Expression with function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-with-function/m-p/521304#M1134409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you can only use field names in on the left side of the = operator. You can create a year field in the script from field B. That's the best approach. Or you can try something like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count( {1&amp;lt;field_b={'=year(field_b)=2000'}&amp;gt;} Distinct Social_Number)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2013 16:54:28 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-10-24T16:54:28Z</dc:date>
    <item>
      <title>Set Expression with function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-with-function/m-p/521303#M1134408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a "quick chart" where I have graphs with sales by year, this date is related with field A. However I need show number of clients according the last year of enrollment and this date is related with field B therefore I need count all my customers in year (field B) with out have in mind the month in sales (field B). Can I transform a dimension in a set expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count( {1&amp;lt;Year(field_b)={2000}&amp;gt;} Distinct Social_Number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Javier Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 16:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-with-function/m-p/521303#M1134408</guid>
      <dc:creator>javier_florian</dc:creator>
      <dc:date>2013-10-24T16:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression with function</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-with-function/m-p/521304#M1134409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, you can only use field names in on the left side of the = operator. You can create a year field in the script from field B. That's the best approach. Or you can try something like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count( {1&amp;lt;field_b={'=year(field_b)=2000'}&amp;gt;} Distinct Social_Number)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 16:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-with-function/m-p/521304#M1134409</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-24T16:54:28Z</dc:date>
    </item>
  </channel>
</rss>

