<?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 How to select data within a certain year, using user input? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-select-data-within-a-certain-year-using-user-input/m-p/1912019#M75172</link>
    <description>&lt;P&gt;I have a list of annual permit holders with a column indicating permit year. Each permit holder has an unique CustomerID that does not change from year to year (ie. customer 001 may have two records, one from 2019 and another from 2020, but with the same CustomerID). I want to have a user select a year, then see what percentage of permit holders renew their permits for the selected year. We'll call this "churn rate".&lt;/P&gt;
&lt;P&gt;In the expression editor, how do I call the set of CustomerIDs for the selected year, and compare them to the set of CustomerIDs from the previous year?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 16:08:46 GMT</pubDate>
    <dc:creator>mcorser</dc:creator>
    <dc:date>2022-03-30T16:08:46Z</dc:date>
    <item>
      <title>How to select data within a certain year, using user input?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-data-within-a-certain-year-using-user-input/m-p/1912019#M75172</link>
      <description>&lt;P&gt;I have a list of annual permit holders with a column indicating permit year. Each permit holder has an unique CustomerID that does not change from year to year (ie. customer 001 may have two records, one from 2019 and another from 2020, but with the same CustomerID). I want to have a user select a year, then see what percentage of permit holders renew their permits for the selected year. We'll call this "churn rate".&lt;/P&gt;
&lt;P&gt;In the expression editor, how do I call the set of CustomerIDs for the selected year, and compare them to the set of CustomerIDs from the previous year?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 16:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-data-within-a-certain-year-using-user-input/m-p/1912019#M75172</guid>
      <dc:creator>mcorser</dc:creator>
      <dc:date>2022-03-30T16:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to select data within a certain year, using user input?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-data-within-a-certain-year-using-user-input/m-p/1912046#M75173</link>
      <description>&lt;P&gt;May be like this -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;Year={"$(=Max(Year))"}&amp;gt;}distinct [Customer ID])&lt;/P&gt;
&lt;P&gt;Count({&amp;lt;Year={"$(=Max(Year)-1)"}&amp;gt;}distinct [Customer ID])&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 16:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-data-within-a-certain-year-using-user-input/m-p/1912046#M75173</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-03-30T16:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to select data within a certain year, using user input?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-select-data-within-a-certain-year-using-user-input/m-p/1912049#M75174</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/167587"&gt;@mcorser&lt;/a&gt;&amp;nbsp;. please try this :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;demo data :&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;CustomerId, Year&lt;BR /&gt;1, 2019&lt;BR /&gt;2, 2019&lt;BR /&gt;2, 2020&lt;BR /&gt;3, 2019&lt;BR /&gt;3, 2020&lt;BR /&gt;4, 2019&lt;BR /&gt;4, 2020&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;output expression :&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;count(CustomerId)&lt;BR /&gt;/&lt;BR /&gt;count({&amp;lt;Year = {"$(=Year-1)"}&amp;gt;} CustomerId)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;demo output&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QFabian_0-1648659818503.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/75780iDAC0406734EF2B2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="QFabian_0-1648659818503.png" alt="QFabian_0-1648659818503.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 17:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-select-data-within-a-certain-year-using-user-input/m-p/1912049#M75174</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2022-03-30T17:03:54Z</dc:date>
    </item>
  </channel>
</rss>

