<?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 Displaying only the recent value. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187604#M51219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Do you mean how to get the current field of your cyclic group? If so, you can use: GetFieldSelections(CyclicGroupName). It'd something like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(aggr(count(distinct $(=GetFieldSelections(CyclicGroupName))),calendar_year)&amp;gt;=1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;B&gt;&lt;/B&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;B&gt;$(=GetFieldSelections(CyclicGroupName))&lt;STRONG&gt;, '-')&lt;/STRONG&gt;&lt;/B&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Steve&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Mar 2010 03:21:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-24T03:21:13Z</dc:date>
    <item>
      <title>Displaying only the recent value.</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187599#M51214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I have columns store_region and store_end_date and year column as enclosed in the spreadsheet.I need to show only the store region which has store_end_date as null.&lt;/P&gt;&lt;P&gt;EX:In the enclosed spreadsheet for year 2009 the store_region sholud be displayed as 20 instead of 10 and 20 as 20 is pertaining to store_end_date as null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest if theres a way to get this working.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 18:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187599#M51214</guid>
      <dc:creator />
      <dc:date>2010-03-19T18:31:22Z</dc:date>
    </item>
    <item>
      <title>Displaying only the recent value.</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187600#M51215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Maybe you can try with this formula:&lt;/P&gt;&lt;P&gt;=RIGHT(Min(MONTHEND(STORE_END_DATE) &amp;amp; STORE_REGION), 2)&lt;/P&gt;&lt;P&gt;I haven't tried it, but it should work.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Mar 2010 15:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187600#M51215</guid>
      <dc:creator />
      <dc:date>2010-03-20T15:27:21Z</dc:date>
    </item>
    <item>
      <title>Displaying only the recent value.</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187601#M51216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or use the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;IsNull(store_end_date)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;to select the information you want.&lt;/P&gt;&lt;P&gt;It gives a boolean value back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Mar 2010 18:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187601#M51216</guid>
      <dc:creator />
      <dc:date>2010-03-20T18:41:07Z</dc:date>
    </item>
    <item>
      <title>Displaying only the recent value.</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187602#M51217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for the replies.I could get to the most of it except am stuck at one point.&lt;/P&gt;&lt;P&gt;Please see the enclosed doc.in Year 2009 there are 2 store_region where in I have select only one.I cannot generalise my statement as saying isnull(store_end_date) as in other years where there is no store_end_date as null then also I need to select the store_region.&lt;/P&gt;&lt;P&gt;Hers is the expression am using for store_region:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(status='Current' and isnull(STORE_END_DATE)=-1 and aggr(count(distinct STORE_REGION),calendar_year)&amp;gt;1,STORE_REGION,if(status='Current' and isnull(STORE_REGION)=-1 and aggr(count(distinct STORE_REGION),calendar_year)=1,STORE_REGION,if(status='Current' and isnull(STORE_REGION)&amp;lt;&amp;gt;-1,STORE_REGION,' ')))&lt;/P&gt;&lt;P&gt;My requirement is as below:&lt;/P&gt;&lt;P&gt;I have to select store_region only is status is current incase there is not store_end_date as null&lt;/P&gt;&lt;P&gt;in case of store_end_date as null and status is current i have to select only that store_region.&lt;/P&gt;&lt;P&gt;Pls suggest.&lt;/P&gt;&lt;P&gt;Appreciate all your help.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P style="margin:0in 0in 10pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Mar 2010 16:38:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187602#M51217</guid>
      <dc:creator />
      <dc:date>2010-03-22T16:38:24Z</dc:date>
    </item>
    <item>
      <title>Displaying only the recent value.</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187603#M51218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI everyone,&lt;/P&gt;&lt;P&gt;When I am writing the expression:&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;if(aggr(count(distinct STORE_REGION),calendar_year)&amp;gt;=1 ,STORE_REGION,'-') it gives me the correct result but am having Store_region,store_district and store_number as a cyclic group,how do I incorporate the above expression in this cyclic group.As I do not get the result when I use the same expression in cyclic group.&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Pls advice.&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 19:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187603#M51218</guid>
      <dc:creator />
      <dc:date>2010-03-23T19:14:39Z</dc:date>
    </item>
    <item>
      <title>Displaying only the recent value.</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187604#M51219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Do you mean how to get the current field of your cyclic group? If so, you can use: GetFieldSelections(CyclicGroupName). It'd something like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(aggr(count(distinct $(=GetFieldSelections(CyclicGroupName))),calendar_year)&amp;gt;=1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;B&gt;&lt;/B&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;B&gt;$(=GetFieldSelections(CyclicGroupName))&lt;STRONG&gt;, '-')&lt;/STRONG&gt;&lt;/B&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;Steve&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 03:21:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187604#M51219</guid>
      <dc:creator />
      <dc:date>2010-03-24T03:21:13Z</dc:date>
    </item>
    <item>
      <title>Displaying only the recent value.</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187605#M51220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Steve.I got it.&lt;/P&gt;&lt;P&gt;I have one last question.Please refer to the enclosed doc.I have rounded 2008 year,I should get as per the formula-&lt;/P&gt;&lt;P&gt;if(aggr(max(store_key),calendar_year),store_region,' ') 11 as output as 48911 store_key corresponds to store_region 11.But its giving me 8.Is there any limitation in qlikview .Pls help in understanding where am going wrong.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 15:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-only-the-recent-value/m-p/187605#M51220</guid>
      <dc:creator />
      <dc:date>2010-03-24T15:44:55Z</dc:date>
    </item>
  </channel>
</rss>

