<?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: Using formula to set data as filter in Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-formula-to-set-data-as-filter-in-Set-Analysis/m-p/2061973#M87104</link>
    <description>&lt;P&gt;I have ound some solutions in other topics like this&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/How-to-write-set-analysis-for-display-current-year/td-p/89134," target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/How-to-write-set-analysis-for-display-current-year/td-p/89134,&lt;/A&gt;&amp;nbsp;but it doesn't show how to mix this filter with my other already existing filters&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 10:47:06 GMT</pubDate>
    <dc:creator>FlaminioIta88</dc:creator>
    <dc:date>2023-04-19T10:47:06Z</dc:date>
    <item>
      <title>Using formula to set data as filter in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-formula-to-set-data-as-filter-in-Set-Analysis/m-p/2061971#M87103</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am struggling trying to set a formula that I created as a filter.&lt;/P&gt;
&lt;P&gt;My Goal: my current Sum formula should sum ONLY the value of the Current Year.&lt;/P&gt;
&lt;P&gt;My formula (before filling with filter about the year):&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Sum( {$&amp;lt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;[IDProduct]={1,3,4,5,6},&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;[IDCustomer]={1}&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;gt;} &lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;[Sales] )&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;So, I create a Formula called vCurrentYear in this way&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;year(today())&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;It works fine, if I put it in a KPI it results in 2023.&lt;/P&gt;
&lt;P&gt;I am not able to fill it as a filter in the first formula. I tried several ways without success.&lt;/P&gt;
&lt;P&gt;How should I write it?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 10:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-formula-to-set-data-as-filter-in-Set-Analysis/m-p/2061971#M87103</guid>
      <dc:creator>FlaminioIta88</dc:creator>
      <dc:date>2023-04-19T10:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using formula to set data as filter in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-formula-to-set-data-as-filter-in-Set-Analysis/m-p/2061973#M87104</link>
      <description>&lt;P&gt;I have ound some solutions in other topics like this&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/How-to-write-set-analysis-for-display-current-year/td-p/89134," target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/How-to-write-set-analysis-for-display-current-year/td-p/89134,&lt;/A&gt;&amp;nbsp;but it doesn't show how to mix this filter with my other already existing filters&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 10:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-formula-to-set-data-as-filter-in-Set-Analysis/m-p/2061973#M87104</guid>
      <dc:creator>FlaminioIta88</dc:creator>
      <dc:date>2023-04-19T10:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using formula to set data as filter in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-formula-to-set-data-as-filter-in-Set-Analysis/m-p/2062017#M87107</link>
      <description>&lt;P&gt;&lt;STRONG&gt;You can try to use this formula, you have to substitute only&amp;nbsp;&lt;EM&gt;DATE_FIELD &lt;/EM&gt;with the field in your data set that contein date:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Sum( {$&amp;lt;&lt;/STRONG&gt;&lt;STRONG&gt;[IDProduct]={1,3,4,5,6},&lt;/STRONG&gt;&lt;STRONG&gt;[IDCustomer]={1} ,&lt;EM&gt;DATE_FIELD&lt;/EM&gt;="&amp;gt;=$(=Date(YearStart(Max(&lt;EM&gt;DATE_FIELD&lt;/EM&gt;)),'DD/MM/YYYY'))"}&lt;/STRONG&gt;&lt;STRONG&gt;&amp;gt;}&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;[Sales] )&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-formula-to-set-data-as-filter-in-Set-Analysis/m-p/2062017#M87107</guid>
      <dc:creator>Brunei</dc:creator>
      <dc:date>2023-04-19T12:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using formula to set data as filter in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Using-formula-to-set-data-as-filter-in-Set-Analysis/m-p/2062020#M87109</link>
      <description>&lt;P&gt;I am hoping that you have a field Year in your Data Model and Your DateKey is related to that year&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Sum( {$&amp;lt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;[IDProduct]={1,3,4,5,6},&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;[IDCustomer]={1},&lt;BR /&gt;year={"=year(max(DateKey))"}&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;gt;}&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;[Sales] )&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;where DateKey is you Date Field.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-formula-to-set-data-as-filter-in-Set-Analysis/m-p/2062020#M87109</guid>
      <dc:creator>Gabbar</dc:creator>
      <dc:date>2023-04-19T12:17:07Z</dc:date>
    </item>
  </channel>
</rss>

