<?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: Counting previous value in filter of getfieldselections in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521369#M37348</link>
    <description>try something like this..&lt;BR /&gt;Previous Year (PY) : Count(distinct {&amp;lt;Year={'$(=max(Year)-1)'}&amp;gt;}ID)&lt;BR /&gt;Current Year (CY) : Count(distinct ID)</description>
    <pubDate>Mon, 17 Dec 2018 04:01:49 GMT</pubDate>
    <dc:creator>PradeepReddy</dc:creator>
    <dc:date>2018-12-17T04:01:49Z</dc:date>
    <item>
      <title>Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521363#M37347</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I have a filter with years 2017,2018,2019. For example when I select year 2018, I want to be able to compute the count(ID) of the previous year (2017) as well.&lt;BR /&gt;&lt;BR /&gt;Any idea on how to achieve this?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521363#M37347</guid>
      <dc:creator>NewToQlik</dc:creator>
      <dc:date>2024-11-16T07:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521369#M37348</link>
      <description>try something like this..&lt;BR /&gt;Previous Year (PY) : Count(distinct {&amp;lt;Year={'$(=max(Year)-1)'}&amp;gt;}ID)&lt;BR /&gt;Current Year (CY) : Count(distinct ID)</description>
      <pubDate>Mon, 17 Dec 2018 04:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521369#M37348</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2018-12-17T04:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521370#M37349</link>
      <description>&lt;P&gt;Thank you for your reply.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have modified it to the following:&lt;BR /&gt;Count(distinct {&amp;lt;DATE={"$(=max(DATE)-365)"}&amp;gt;}ID)&lt;BR /&gt;&lt;BR /&gt;But results shows 30/12/1899 no matter what I select. Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 04:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521370#M37349</guid>
      <dc:creator>NewToQlik</dc:creator>
      <dc:date>2018-12-17T04:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521380#M37352</link>
      <description>&lt;P&gt;you can use chart Function that named Above() , if you set year As dimension, and in Expression write Above(count(ID)), it calculate the previous count (ID) according to value of dimension that you set.&lt;/P&gt;&lt;P&gt;fist of all I suggest you to try it in the straight chart with year as dimension and 2 Expression&lt;/P&gt;&lt;P&gt;1- count(ID)&lt;/P&gt;&lt;P&gt;&amp;amp;&lt;/P&gt;&lt;P&gt;2-&amp;nbsp; Above(count(ID))&lt;/P&gt;&lt;P&gt;and check and see does it work well for you or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 05:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521380#M37352</guid>
      <dc:creator>PoonehTahernia</dc:creator>
      <dc:date>2018-12-17T05:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521381#M37353</link>
      <description>are you getting the correct results, when you use the expression I provided?&lt;BR /&gt;Check the date format once..</description>
      <pubDate>Mon, 17 Dec 2018 05:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521381#M37353</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2018-12-17T05:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521392#M37356</link>
      <description>&lt;P&gt;I am getting '0' even when I have selected the dates&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 06:18:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521392#M37356</guid>
      <dc:creator>NewToQlik</dc:creator>
      <dc:date>2018-12-17T06:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521393#M37357</link>
      <description>Sample Data...&lt;BR /&gt;&lt;BR /&gt;Test:&lt;BR /&gt;Load *,&lt;BR /&gt;Year(T_Date) as T_Year;&lt;BR /&gt;Load * inline&lt;BR /&gt;[&lt;BR /&gt;ID,T_Date&lt;BR /&gt;1,2017-10-20&lt;BR /&gt;2,2017-09-20&lt;BR /&gt;3,2017-03-15&lt;BR /&gt;4,2017-02-13&lt;BR /&gt;5,2018-01-02&lt;BR /&gt;6,2018-01-01&lt;BR /&gt;7,2016-02-20&lt;BR /&gt;8,2016-05-05&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Expression..&lt;BR /&gt;Previous Year (PY) : Count(distinct {&amp;lt;T_Year={'$(=max(T_Year)-1)'}&amp;gt;}ID)&lt;BR /&gt;Current Year (CY) : Count(distinct ID)&lt;BR /&gt;&lt;BR /&gt;Filter (List box) : T_Year&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Dec 2018 06:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521393#M37357</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2018-12-17T06:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521395#M37358</link>
      <description>&lt;P&gt;I will be using the dates as a filter. This is what it will look like&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test:&lt;BR /&gt;Load *,&lt;BR /&gt;Year(T_Date) as T_Year;&lt;BR /&gt;Load * inline&lt;BR /&gt;[&lt;BR /&gt;ID1,T_Date&lt;BR /&gt;1,2017-10-20&lt;BR /&gt;2,2017-10-20&lt;BR /&gt;3,2017-10-20&lt;BR /&gt;4,2017-10-20&lt;BR /&gt;5,2018-10-20&lt;BR /&gt;6,2018-10-20&lt;BR /&gt;7,2016-10-20&lt;BR /&gt;8,2016-10-20&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Filter box : T_Date&lt;BR /&gt;Count(distinct ID)&lt;BR /&gt;Count(distinct {&amp;lt;T_Date={'$(=max(T_Date)-365)'}&amp;gt;}ID1)&lt;BR /&gt;&lt;BR /&gt;The second expression always gives a value of '0'. Any solutions?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 06:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521395#M37358</guid>
      <dc:creator>NewToQlik</dc:creator>
      <dc:date>2018-12-17T06:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521398#M37360</link>
      <description>&lt;P&gt;if you are using Date field as filter, then try something like this...&lt;BR /&gt;Count({&amp;lt;T_Year={'$(=Year(max(T_Date))-1)'}&amp;gt;}ID&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 08:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521398#M37360</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2018-12-17T08:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521401#M37361</link>
      <description>&lt;P&gt;It still shows '0'. I am trying to only select 1 date in the filter box. This expression will work if I select 2 dates.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 06:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521401#M37361</guid>
      <dc:creator>NewToQlik</dc:creator>
      <dc:date>2018-12-17T06:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521403#M37362</link>
      <description>can you share your app?</description>
      <pubDate>Mon, 17 Dec 2018 06:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521403#M37362</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2018-12-17T06:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521405#M37363</link>
      <description>&lt;P&gt;I am getting error saying 'Contents of the attachment doesn't match its file type'.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 07:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521405#M37363</guid>
      <dc:creator>NewToQlik</dc:creator>
      <dc:date>2018-12-17T07:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Counting previous value in filter of getfieldselections</title>
      <link>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521442#M37371</link>
      <description>&lt;P&gt;See the attachment..&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 08:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Counting-previous-value-in-filter-of-getfieldselections/m-p/1521442#M37371</guid>
      <dc:creator>PradeepReddy</dc:creator>
      <dc:date>2018-12-17T08:30:49Z</dc:date>
    </item>
  </channel>
</rss>

