<?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 Create a table which lists ID that are going to expire in 30 days in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1793891#M62171</link>
    <description>&lt;P&gt;Hello Gurus&lt;/P&gt;&lt;P&gt;I am trying to create a table which shows all the ID which are about to expire in the next 30 days. The expression also needs to see if a new date has already been set up for the ID. These do not have to be represented on the table.&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Meter_ID&lt;/TD&gt;&lt;TD&gt;RC_ID&lt;/TD&gt;&lt;TD&gt;RC_Start&lt;/TD&gt;&lt;TD&gt;RC_End&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10001&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;01/01/2021&lt;/TD&gt;&lt;TD&gt;24/03/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10001&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;25/03/2021&lt;/TD&gt;&lt;TD&gt;31/12/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10002&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;01/01/2021&lt;/TD&gt;&lt;TD&gt;24/03/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10003&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;01/01/2021&lt;/TD&gt;&lt;TD&gt;24/03/2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As It can be seen MeterID 10001 has already a new RC in place, but MeterID 10002 and 10003 don't.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need this information in my table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Meter_ID&lt;/TD&gt;&lt;TD&gt;RC_ID&lt;/TD&gt;&lt;TD&gt;RC_Start&lt;/TD&gt;&lt;TD&gt;RC_End&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;10002&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;01/01/2021&lt;/TD&gt;&lt;TD&gt;24/03/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10003&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;01/01/2021&lt;/TD&gt;&lt;TD&gt;24/03/2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:23:22 GMT</pubDate>
    <dc:creator>Mystical_jedi</dc:creator>
    <dc:date>2024-11-16T00:23:22Z</dc:date>
    <item>
      <title>Create a table which lists ID that are going to expire in 30 days</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1793891#M62171</link>
      <description>&lt;P&gt;Hello Gurus&lt;/P&gt;&lt;P&gt;I am trying to create a table which shows all the ID which are about to expire in the next 30 days. The expression also needs to see if a new date has already been set up for the ID. These do not have to be represented on the table.&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Meter_ID&lt;/TD&gt;&lt;TD&gt;RC_ID&lt;/TD&gt;&lt;TD&gt;RC_Start&lt;/TD&gt;&lt;TD&gt;RC_End&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10001&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;01/01/2021&lt;/TD&gt;&lt;TD&gt;24/03/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10001&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;25/03/2021&lt;/TD&gt;&lt;TD&gt;31/12/2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10002&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;01/01/2021&lt;/TD&gt;&lt;TD&gt;24/03/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10003&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;01/01/2021&lt;/TD&gt;&lt;TD&gt;24/03/2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As It can be seen MeterID 10001 has already a new RC in place, but MeterID 10002 and 10003 don't.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need this information in my table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Meter_ID&lt;/TD&gt;&lt;TD&gt;RC_ID&lt;/TD&gt;&lt;TD&gt;RC_Start&lt;/TD&gt;&lt;TD&gt;RC_End&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;10002&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;01/01/2021&lt;/TD&gt;&lt;TD&gt;24/03/2021&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10003&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;01/01/2021&lt;/TD&gt;&lt;TD&gt;24/03/2021&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1793891#M62171</guid>
      <dc:creator>Mystical_jedi</dc:creator>
      <dc:date>2024-11-16T00:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table which lists ID that are going to expire in 30 days</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1794242#M62211</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;=aggr(Only({$&amp;lt;RC_ID={"=(RC_End&amp;gt;='$(=Date(Today()))' and RC_End&amp;lt;='$(=Date(Today()+30))')"},&lt;BR /&gt;Meter_ID={"=(max(RC_End)&amp;gt;='$(=Date(Today()))' and max(RC_End)&amp;lt;='$(=Date(Today()+30))')"}&amp;gt;} Meter_ID), Meter_ID)&lt;/P&gt;&lt;P&gt;The RC_ID= clause will identify those RCs that are expiring in the next 30 days.&amp;nbsp; The Meter_ID= clause will include only Meter_IDs whose maximum RC_End is with the next 30 days.&amp;nbsp; Together, it should give you the results you are looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 21:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1794242#M62211</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-03-24T21:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table which lists ID that are going to expire in 30 days</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1794251#M62212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/126908"&gt;@GaryGiles&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the list of MeterID's for the next 30 days. But there is one issue, I am also getting the past RC_ID for the past date for the same MeterID.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mystical_jedi_0-1616625558196.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51784iA65658CB6EFED118/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mystical_jedi_0-1616625558196.png" alt="Mystical_jedi_0-1616625558196.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The yellow highlighted ones are the old RC_ID's.&lt;/P&gt;&lt;P&gt;How can I remove this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 22:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1794251#M62212</guid>
      <dc:creator>Mystical_jedi</dc:creator>
      <dc:date>2021-03-24T22:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table which lists ID that are going to expire in 30 days</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1794255#M62214</link>
      <description>&lt;P&gt;Actually I found a solution to this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added an expression the RC_End field:&lt;/P&gt;&lt;P&gt;if (today()&amp;lt;=RC_End, RC_end)&lt;/P&gt;&lt;P&gt;and I hid all the Null values after applying this.&lt;/P&gt;&lt;P&gt;My problem has been solved!&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/126908"&gt;@GaryGiles&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 23:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1794255#M62214</guid>
      <dc:creator>Mystical_jedi</dc:creator>
      <dc:date>2021-03-24T23:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table which lists ID that are going to expire in 30 days</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1803352#M65201</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/126908"&gt;@GaryGiles&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Just another question regarding this -&amp;nbsp; I would like to keep this KPI constant.&lt;/P&gt;&lt;P&gt;For example -&amp;nbsp; if I choose an end date(RC_End) on a different page, this KPI's value changes (increases) than the value which was seen without choosing a end date filters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway that I can keep this constant irrespective of any filters being added?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 05:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1803352#M65201</guid>
      <dc:creator>Mystical_jedi</dc:creator>
      <dc:date>2021-04-28T05:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table which lists ID that are going to expire in 30 days</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1803470#M65224</link>
      <description>&lt;P&gt;Using an Identifier of &lt;STRONG&gt;1&lt;/STRONG&gt; at the beginning of your set analysis will cause filters to be ignored for the expression.&amp;nbsp; Something like this (this is based on my original expression; wasn't sure what changes you made):&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=aggr(&lt;STRONG&gt;{1}&amp;nbsp;&lt;/STRONG&gt;Only({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;RC_ID={"=(RC_End&amp;gt;='$(=Date(Today()))' and RC_End&amp;lt;='$(=Date(Today()+30))')"},&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Meter_ID={"=(max(&lt;STRONG&gt;{1}&amp;nbsp;&lt;/STRONG&gt;RC_End)&amp;gt;='$(=Date(Today()))' and max(&lt;STRONG&gt;{1}&amp;nbsp;&lt;/STRONG&gt;RC_End)&amp;lt;='$(=Date(Today()+30))')"}&amp;gt;} Meter_ID), Meter_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 11:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1803470#M65224</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-04-28T11:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table which lists ID that are going to expire in 30 days</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1803675#M65256</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/126908"&gt;@GaryGiles&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The change that I had made on the query was that I added &lt;STRONG&gt;count&lt;/STRONG&gt; in the beginning and changed 30 to 90 to present value on KPI.&lt;/P&gt;&lt;P&gt;I tried your query, in addition to it, I added &lt;STRONG&gt;COUNT&amp;nbsp;&lt;/STRONG&gt;again (&lt;STRONG&gt;also added{1}&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;(&lt;STRONG&gt;{1}&lt;/STRONG&gt;aggr({1} Only({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;RC_ID={"=(RC_EDate&amp;gt;='$(=Date(Today()))' and RC_EDate&amp;lt;='$(=Date(Today()+90))')"},&lt;BR /&gt;ACCOUNT_NUMBER={"=(max(&lt;STRONG&gt;{1}&lt;/STRONG&gt; RC_EDate)&amp;gt;='$(=Date(Today()))' and max(&lt;STRONG&gt;{1}&lt;/STRONG&gt; RC_EDate)&amp;lt;='$(=Date(Today()+90))')"}&amp;gt;} ACCOUNT_NUMBER), ACCOUNT_NUMBER))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The value still changes after selecting a date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure, if the count is added correctly in the beginning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 00:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1803675#M65256</guid>
      <dc:creator>Mystical_jedi</dc:creator>
      <dc:date>2021-04-29T00:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create a table which lists ID that are going to expire in 30 days</title>
      <link>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1803785#M65266</link>
      <description>&lt;P&gt;I don't think you need to use the aggr() function if you are just looking for a count KPI.&amp;nbsp; I think the way I was determining the RC_IDs was problematic.&amp;nbsp; I reworked that part of the set analysis.&amp;nbsp; Try this for KPI:&lt;/P&gt;&lt;P&gt;=Count({1&amp;lt;RC_ID=P({1&amp;lt;RC_EDate={"&amp;gt;=$(=Date(Today()))&amp;lt;=$(=Date(Today()+90))"}&amp;gt;} RC_ID),&lt;BR /&gt;ACCOUNT_NUMBER={"=(max({1} RC_EDate)&amp;gt;='$(=Date(Today()))' and max({1} RC_EDate)&amp;lt;='$(=Date(Today()+90))')"}&amp;gt;} ACCOUNT_NUMBER)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 11:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Create-a-table-which-lists-ID-that-are-going-to-expire-in-30/m-p/1803785#M65266</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-04-29T11:38:53Z</dc:date>
    </item>
  </channel>
</rss>

