<?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: How to display only 1 record instead all (expressions) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388546#M1158390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I modify a bit "QV Learner" script, it seen work and i use total sum of the row to display the Total.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Aggr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BuildingNLA&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[OCCUPNCY]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SUITID2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Now, the issue left the OCCUPNCY date will change base on what i have select in my period value.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 07:30:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-03T07:30:31Z</dc:date>
    <item>
      <title>How to display only 1 record instead all (expressions)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388541#M1158385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find it difficult to get only the 1 record base on my period selection. &lt;/P&gt;&lt;P&gt;In following casse, the period is 30 of november 2012, i wish to get result only the 16/11/2012 instead of 01/04/2011.&lt;/P&gt;&lt;P&gt;In other words, the top pccupncy date to the period i selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="28359" class="jive-image" alt="03-01-2013 12-21-27 PM.png" src="/legacyfs/online/28359_03-01-2013 12-21-27 PM.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Billion thanks to you, if you can help on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 04:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388541#M1158385</guid>
      <dc:creator />
      <dc:date>2013-01-03T04:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to display only 1 record instead all (expressions)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388542#M1158386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;firstsortedvalue(Total Building,Occupncy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Khadeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 04:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388542#M1158386</guid>
      <dc:creator>khadeer</dc:creator>
      <dc:date>2013-01-03T04:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to display only 1 record instead all (expressions)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388543#M1158387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;firstsortedvalue(Total Building,Occupncy) doesn't work well if i have multiple records which consists of many suitid there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope to select only the closest to my period selection in this case nov 2012. in my data might consists other suitid too. so all of the suitid records will use thier own one with closest Occuncy date as output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the logic behind for sql is something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select top 1 buildingNLA&lt;/P&gt;&lt;P&gt;where occupncy &amp;lt;= period&lt;/P&gt;&lt;P&gt;order occupncy desc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 05:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388543#M1158387</guid>
      <dc:creator />
      <dc:date>2013-01-03T05:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to display only 1 record instead all (expressions)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388544#M1158388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi in ur expression add this condition too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(isnull(somthing) and &lt;STRONG&gt;OCCPNCY=Max(OCCPNCY)&lt;/STRONG&gt;,'True','False'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Kabilan K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 06:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388544#M1158388</guid>
      <dc:creator />
      <dc:date>2013-01-03T06:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to display only 1 record instead all (expressions)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388545#M1158389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Kabilan &amp;amp; QV learner&lt;/P&gt;&lt;P&gt;Thanks for your reply.. The concept for the expressions is basically like following sql statement, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select top 1 buildingNLA&lt;/P&gt;&lt;P&gt;where occupncy &amp;lt;= period&lt;/P&gt;&lt;P&gt;order occupncy desc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, Kabilan&lt;/P&gt;&lt;P&gt;The script you shared is not working and error. Please correct me if i were wrong.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IsNull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OCCUPNCY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OCCUPNCY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)='True','False',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BuildingNLA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 06:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388545#M1158389</guid>
      <dc:creator />
      <dc:date>2013-01-03T06:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to display only 1 record instead all (expressions)</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388546#M1158390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I modify a bit "QV Learner" script, it seen work and i use total sum of the row to display the Total.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Aggr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BuildingNLA&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[OCCUPNCY]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SUITID2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Now, the issue left the OCCUPNCY date will change base on what i have select in my period value.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 07:30:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-display-only-1-record-instead-all-expressions/m-p/388546#M1158390</guid>
      <dc:creator />
      <dc:date>2013-01-03T07:30:31Z</dc:date>
    </item>
  </channel>
</rss>

