<?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: Last years Basket size in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Last-years-Basket-size/m-p/1089610#M18210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you VERY much! Your solution worked perfectly &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; About my current Basket Size being calculated across all years available. The ones I'm doing it for wanted it that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice evening or day wherever you are &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Betty Habtemariam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jan 2016 19:31:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-14T19:31:34Z</dc:date>
    <item>
      <title>Last years Basket size</title>
      <link>https://community.qlik.com/t5/App-Development/Last-years-Basket-size/m-p/1089608#M18208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello eveybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on key numbers and would like to get some help. On my dashboard, I have something that looks like this:&lt;BR /&gt;&lt;IMG alt="Skärmklipp.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/111622_Skärmklipp.PNG" style="height: 69px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see to the left (Net Sales), I have also calculated net sales from last year (the blue numbers right next to it). If I'd like to do the same with for an example Basket size, how do I do that? My expression for basket size is: &lt;STRONG&gt;"sum(Sales)/count(DISTINCT [%Order])" &lt;/STRONG&gt;and the expression for last years sale is: &lt;STRONG&gt;"Sum({&amp;lt;Year = {'$(=Max(Year) -1)'}&amp;gt;} Sales)"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to combine these expression somehow. Instead of Sales I'd like to put in the expression for Basket size, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Sum({&amp;lt;Year = {'$(=Max(Year) -1)'}&amp;gt;}&lt;STRONG style="color: #0000ff; font-size: 13.3333px;"&gt;sum(Sales)/count(DISTINCT [%Order])&lt;/STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But it doesn't work of course. How do I write this in the best possible way?&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Betty Habtemariam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 10:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-years-Basket-size/m-p/1089608#M18208</guid>
      <dc:creator />
      <dc:date>2016-01-14T10:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Last years Basket size</title>
      <link>https://community.qlik.com/t5/App-Development/Last-years-Basket-size/m-p/1089609#M18209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you would need to apply the set expression to all aggregations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;Year = {'$(=Max(Year) -1)'}&amp;gt;}&lt;/STRONG&gt;Sales) / count(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt;Year = {'$(=Max(Year) -1)'}&amp;gt;} &lt;/STRONG&gt;DISTINCT [%Order])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that your current basket size seems to be calculated across all years available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 18:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-years-Basket-size/m-p/1089609#M18209</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-14T18:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Last years Basket size</title>
      <link>https://community.qlik.com/t5/App-Development/Last-years-Basket-size/m-p/1089610#M18210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you VERY much! Your solution worked perfectly &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; About my current Basket Size being calculated across all years available. The ones I'm doing it for wanted it that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice evening or day wherever you are &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Betty Habtemariam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2016 19:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-years-Basket-size/m-p/1089610#M18210</guid>
      <dc:creator />
      <dc:date>2016-01-14T19:31:34Z</dc:date>
    </item>
  </channel>
</rss>

