<?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 set analysis calculation based on selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184474#M500990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'd use a variable vDateFrom, used in a calendar object, where the minimum date is set to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Min(InvoiceActivationDate)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and likewise with the maximum using Max() instead. To be shown as dates, go to the "Number" tab in the Object Properties, and set it to "Date".&lt;/P&gt;&lt;P&gt;Then use the following expression in your chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt; InvoiceActivationDate = {'&amp;gt;=$(=Date(vDateFrom -15))&amp;lt;=$(=Date(vDateFrom))'} &amp;gt;} OriginalPrice)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Make sure that InvoiceActivationDate and the result of vDateFrom are formatted the same.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2011 12:49:53 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-03-28T12:49:53Z</dc:date>
    <item>
      <title>set analysis calculation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184473#M500989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The end user wants to select a date and then count sales based on calculations around that date.&lt;/P&gt;&lt;P&gt;e.g. use selects a date, the user wants to see sales for the dates before the selected date.&lt;/P&gt;&lt;P&gt;I'm thinking a set analysis of course but i don't know how to write it when it comes to the date to be calculated around.&lt;/P&gt;&lt;P&gt;This is roughly expressed of how i want to do, script-wise;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;InvoiceActivationDate={date(InvoiceActivationDate)-15}&amp;gt;} OriginalPrice)&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 12:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184473#M500989</guid>
      <dc:creator />
      <dc:date>2011-03-28T12:42:10Z</dc:date>
    </item>
    <item>
      <title>set analysis calculation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184474#M500990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'd use a variable vDateFrom, used in a calendar object, where the minimum date is set to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Min(InvoiceActivationDate)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and likewise with the maximum using Max() instead. To be shown as dates, go to the "Number" tab in the Object Properties, and set it to "Date".&lt;/P&gt;&lt;P&gt;Then use the following expression in your chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt; InvoiceActivationDate = {'&amp;gt;=$(=Date(vDateFrom -15))&amp;lt;=$(=Date(vDateFrom))'} &amp;gt;} OriginalPrice)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Make sure that InvoiceActivationDate and the result of vDateFrom are formatted the same.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 12:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184474#M500990</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-28T12:49:53Z</dc:date>
    </item>
    <item>
      <title>set analysis calculation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184475#M500991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anykay,&lt;/P&gt;&lt;P&gt;You can use this expresion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;({$&amp;lt;[Fecha de la transacción]={"&amp;lt;$(InvoiceActivationDate)"}&amp;gt;} OrigalPrice)&lt;/P&gt;&lt;P&gt;I hope to help you.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 12:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184475#M500991</guid>
      <dc:creator />
      <dc:date>2011-03-28T12:51:11Z</dc:date>
    </item>
    <item>
      <title>SV:Re: set analysis calculation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184476#M500992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok.. About the variable, do i set this in the script? because i tried let vDateFrom=min(InvoiceActivationDate)&lt;/P&gt;&lt;P&gt;But that didn't work out.&lt;/P&gt;&lt;P&gt;And in the calender object i'm lost...&lt;/P&gt;&lt;P&gt;Sorry... where do i go wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 13:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184476#M500992</guid>
      <dc:creator />
      <dc:date>2011-03-28T13:38:49Z</dc:date>
    </item>
    <item>
      <title>SV:Re: set analysis calculation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184477#M500993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you can set it in the script, but it will be modified in runtime, you can create it either in the Settings menu, Variable Overview. But the valur of the variable is... variable. I mentioned minimum and maximum values set in the Slider/Calendar object.&lt;/P&gt;&lt;P&gt;Take a look at &lt;A href="http://community.qlik.com/media/p/143017.aspx" target="_blank" title="The Basics about Dates, Date Ranges and Set Analysis"&gt;this file&lt;/A&gt;, it's very similar to what you want to get.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 13:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184477#M500993</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-03-28T13:56:47Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: set analysis calculation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184478#M500994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great document! I will get a lot of hlep from that one! Thanks!&lt;/P&gt;&lt;P&gt;I think this will solve my problem! Otherwise i might get back to you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 08:12:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184478#M500994</guid>
      <dc:creator />
      <dc:date>2011-03-29T08:12:28Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: set analysis calculation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184479#M500995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have another problem that i think can be solved.&lt;/P&gt;&lt;P&gt;When i've selected i few invoices the selection of vStartDate narrows down so that i i only can choose between the invoices first and last transaction dates. I want to be able to chose any date i want despite what i've chosen before.&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 09:43:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184479#M500995</guid>
      <dc:creator />
      <dc:date>2011-04-11T09:43:02Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: set analysis calculation based on selection</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184480#M500996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i solved it myself &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i wrote min({1} transaction_date) instead of min(transaction_date)&lt;/P&gt;&lt;P&gt;of course.. &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;//A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 09:56:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-calculation-based-on-selection/m-p/184480#M500996</guid>
      <dc:creator />
      <dc:date>2011-04-11T09:56:54Z</dc:date>
    </item>
  </channel>
</rss>

