<?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: select (?) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/select/m-p/1245131#M868560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the FirstSortedValue function:&lt;/P&gt;&lt;P&gt;First: FirstSortedValue( SALES, WEEK )&lt;/P&gt;&lt;P&gt;Last: FirstSortedValue( SALES, -WEEK )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2016 11:47:34 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-12-12T11:47:34Z</dc:date>
    <item>
      <title>select (?)</title>
      <link>https://community.qlik.com/t5/QlikView/select/m-p/1245130#M868559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;I am trying to estimate the increase/decrease of the sales in the different shops.&lt;/P&gt;&lt;P&gt;I have these columns:&lt;/P&gt;&lt;P&gt;SHOP, SALES, WEEK.&lt;/P&gt;&lt;P&gt;I'd like to calculate the difference (in percentage) of the sales in the different shops, from the first week to the current one.&lt;/P&gt;&lt;P&gt;My problem is that for example in the first/last week we were not selling in all the shops.&lt;/P&gt;&lt;P&gt;I need something like:" select the first and last value different from zero".&lt;/P&gt;&lt;P&gt;How can I translate this in an expression?&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select/m-p/1245130#M868559</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: select (?)</title>
      <link>https://community.qlik.com/t5/QlikView/select/m-p/1245131#M868560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the FirstSortedValue function:&lt;/P&gt;&lt;P&gt;First: FirstSortedValue( SALES, WEEK )&lt;/P&gt;&lt;P&gt;Last: FirstSortedValue( SALES, -WEEK )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 11:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select/m-p/1245131#M868560</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-12T11:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: select (?)</title>
      <link>https://community.qlik.com/t5/QlikView/select/m-p/1245132#M868561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thank you for your reply..&lt;/P&gt;&lt;P&gt;How can I sum the sales per shop??&lt;/P&gt;&lt;P&gt;in the same week I have more lines related to the same shop, and using the sum function it gives me back an error &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select/m-p/1245132#M868561</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2016-12-12T12:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: select (?)</title>
      <link>https://community.qlik.com/t5/QlikView/select/m-p/1245133#M868562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the SALES field contains numbers then sum(SALES) will sum the values. If you get an error then the expression is not correct. Make sure to use CASE sensitive field names. SALES, Sales and sales are three different fields as far Qlikview is concerned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select/m-p/1245133#M868562</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-12T12:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: select (?)</title>
      <link>https://community.qlik.com/t5/QlikView/select/m-p/1245134#M868563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the sales field contains numbers...using this kind of formula it gives me back error.&lt;/P&gt;&lt;P&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: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[SALES]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;WEEK&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;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I was also trying to use this different approach:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[WEEK]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=((Min(WEEK))))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[SALES]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[WEEK]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=((Max(WEEK))))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[SALES]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and it works fine, but only if you filter a specific shop. In fact, if you don't filter anything, for the last week it gives back 0.. (maybe because in the data structure I already have the week 50 till 52)..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select/m-p/1245134#M868563</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2016-12-12T12:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: select (?)</title>
      <link>https://community.qlik.com/t5/QlikView/select/m-p/1245135#M868564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, you're trying to nest aggregation functions. That needs an extra function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue( aggr(sum(SALES),WEEK, SHOP), Aggr(WEEK,WEEK,SHOP))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select/m-p/1245135#M868564</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-12T12:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: select (?)</title>
      <link>https://community.qlik.com/t5/QlikView/select/m-p/1245136#M868565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works fine &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Many thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select/m-p/1245136#M868565</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2016-12-12T12:38:05Z</dc:date>
    </item>
  </channel>
</rss>

