<?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: filter data current year in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851674#M70353</link>
    <description>&lt;P&gt;Check this example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table:&lt;BR /&gt;load * inline [ &lt;BR /&gt;Date, Week, ID, Sales&lt;BR /&gt;9/1/2021, 1, A, 10&lt;BR /&gt;9/1/2021, 1, B, 20&lt;BR /&gt;9/7/2021, 2, A, 32&lt;BR /&gt;9/7/2021, 2, C, 31&lt;BR /&gt;9/14/2021, 3, A, 20&lt;BR /&gt;9/15/2021, 3, B, 25&lt;BR /&gt;9/16/2021, 3, D, 20&lt;BR /&gt;9/20/2021, 4, A, 20&lt;BR /&gt;9/20/2021, 4, D, 25&lt;BR /&gt;9/21/2021, 4, B, 10&lt;BR /&gt;9/27/2021, 5, A, 20&lt;BR /&gt;9/27/2021, 5, F, 25&lt;BR /&gt;9/28/2021, 5, D, 20&lt;BR /&gt;10/4/2021, 6, A, 25&lt;BR /&gt;10/5/2021, 6, B, 11&lt;BR /&gt;10/6/2021, 6, C, 12&lt;BR /&gt;10/11/2021, 7, A, 10&lt;BR /&gt;10/11/2021, 7, C, 25&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SalesTable:&lt;BR /&gt;Load Sum(Sales) as TotalSales&lt;BR /&gt;Resident Table;&lt;/P&gt;
&lt;P&gt;Let vSalesVariable = Peek('TotalSales',0,'SalesTable');&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Exit Script;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ashutosh&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 07:29:43 GMT</pubDate>
    <dc:creator>AshutoshBhumkar</dc:creator>
    <dc:date>2021-10-26T07:29:43Z</dc:date>
    <item>
      <title>filter data current year</title>
      <link>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851580#M70342</link>
      <description>&lt;P&gt;hello fellow Qlik developers, please i have few questions.&lt;/P&gt;
&lt;P&gt;1. how do i write an expression that would filter my Data table with information for current year. I have a field with dates which I converted to year like so YEAR(Field).&lt;/P&gt;
&lt;P&gt;2. &amp;nbsp;I want to create Two variables that i can use with the variable input chart at the front end&amp;nbsp;&lt;/P&gt;
&lt;P&gt;( questions how do i create those variables at the script level that shows sum(Qty) and the other is the multiplication of fields Unit*Qty. want to be able to use the variable input to toggle my application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 01:27:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851580#M70342</guid>
      <dc:creator>Ayden</dc:creator>
      <dc:date>2021-10-26T01:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: filter data current year</title>
      <link>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851597#M70344</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;1. You can write the expression like &lt;STRONG&gt;Sum({&amp;lt;Year = {"$(=Max(Year))"}&amp;gt;})&amp;nbsp;&lt;/STRONG&gt;to get sales for Current/Max Year.&lt;/P&gt;
&lt;P&gt;2. To create variables in Script and store &lt;STRONG&gt;Qty&lt;/STRONG&gt; value and&amp;nbsp;&lt;STRONG&gt;Unit*Qty,&amp;nbsp;&lt;/STRONG&gt;you need to make calculations in the table and use Peek function to get and store that specific value in the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 03:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851597#M70344</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-10-26T03:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: filter data current year</title>
      <link>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851638#M70350</link>
      <description>&lt;P&gt;thanks for your response, how can i use peek to achieve this. could you please show me an example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 06:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851638#M70350</guid>
      <dc:creator>Ayden</dc:creator>
      <dc:date>2021-10-26T06:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: filter data current year</title>
      <link>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851674#M70353</link>
      <description>&lt;P&gt;Check this example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table:&lt;BR /&gt;load * inline [ &lt;BR /&gt;Date, Week, ID, Sales&lt;BR /&gt;9/1/2021, 1, A, 10&lt;BR /&gt;9/1/2021, 1, B, 20&lt;BR /&gt;9/7/2021, 2, A, 32&lt;BR /&gt;9/7/2021, 2, C, 31&lt;BR /&gt;9/14/2021, 3, A, 20&lt;BR /&gt;9/15/2021, 3, B, 25&lt;BR /&gt;9/16/2021, 3, D, 20&lt;BR /&gt;9/20/2021, 4, A, 20&lt;BR /&gt;9/20/2021, 4, D, 25&lt;BR /&gt;9/21/2021, 4, B, 10&lt;BR /&gt;9/27/2021, 5, A, 20&lt;BR /&gt;9/27/2021, 5, F, 25&lt;BR /&gt;9/28/2021, 5, D, 20&lt;BR /&gt;10/4/2021, 6, A, 25&lt;BR /&gt;10/5/2021, 6, B, 11&lt;BR /&gt;10/6/2021, 6, C, 12&lt;BR /&gt;10/11/2021, 7, A, 10&lt;BR /&gt;10/11/2021, 7, C, 25&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SalesTable:&lt;BR /&gt;Load Sum(Sales) as TotalSales&lt;BR /&gt;Resident Table;&lt;/P&gt;
&lt;P&gt;Let vSalesVariable = Peek('TotalSales',0,'SalesTable');&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Exit Script;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ashutosh&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 07:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851674#M70353</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-10-26T07:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: filter data current year</title>
      <link>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851938#M70368</link>
      <description>&lt;P&gt;thanks it work now i get this below any idea how to fix it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3FB553CF-4B85-42D7-B3B4-0E408ED4E020.jpeg" style="width: 2114px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/65260iC26A6E55D008AB28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3FB553CF-4B85-42D7-B3B4-0E408ED4E020.jpeg" alt="3FB553CF-4B85-42D7-B3B4-0E408ED4E020.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 14:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851938#M70368</guid>
      <dc:creator>Ayden</dc:creator>
      <dc:date>2021-10-26T14:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: filter data current year</title>
      <link>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851951#M70369</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Variables created in script and frontend will hold only one value.&lt;/P&gt;
&lt;P&gt;You can writes simple Sum(Sales) in the variables.&lt;/P&gt;
&lt;P&gt;What exactly is the requirement ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 15:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/filter-data-current-year/m-p/1851951#M70369</guid>
      <dc:creator>AshutoshBhumkar</dc:creator>
      <dc:date>2021-10-26T15:04:07Z</dc:date>
    </item>
  </channel>
</rss>

