<?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 field equals fields in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232486#M501847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I can't seem to get my set analysis right here's what i do;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;InvoiceActivationDate={$&amp;lt;=(max(pay_date)-7)}&amp;gt;} OriginalPrice)&lt;/P&gt;&lt;P&gt;So what I want to do is sum OriginalPrice for dates (InvoiceActivationsDate's) that are earlier than the maximum pay_date -7 days.&lt;/P&gt;&lt;P&gt;I've tried to just write;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;InvoiceActivationDate={$(max(date))}&amp;gt;} OriginalPrice)&lt;/P&gt;&lt;P&gt;but that doesn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where do i go wrong?&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 Feb 2011 11:21:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-28T11:21:11Z</dc:date>
    <item>
      <title>field equals fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232486#M501847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I can't seem to get my set analysis right here's what i do;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;InvoiceActivationDate={$&amp;lt;=(max(pay_date)-7)}&amp;gt;} OriginalPrice)&lt;/P&gt;&lt;P&gt;So what I want to do is sum OriginalPrice for dates (InvoiceActivationsDate's) that are earlier than the maximum pay_date -7 days.&lt;/P&gt;&lt;P&gt;I've tried to just write;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;InvoiceActivationDate={$(max(date))}&amp;gt;} OriginalPrice)&lt;/P&gt;&lt;P&gt;but that doesn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where do i go wrong?&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 Feb 2011 11:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232486#M501847</guid>
      <dc:creator />
      <dc:date>2011-02-28T11:21:11Z</dc:date>
    </item>
    <item>
      <title>field equals fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232487#M501848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hei&lt;/P&gt;&lt;P&gt;try to change it like this&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;InvoiceActivationDate={"&amp;lt;=$(=(max(pay_date)-7)"}&amp;gt;} OriginalPrice)&lt;/P&gt;&lt;P&gt;hope it helps you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 11:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232487#M501848</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-02-28T11:24:43Z</dc:date>
    </item>
    <item>
      <title>SV:Re: field equals fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232488#M501849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;didn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;i only get "-" in the expression column...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 11:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232488#M501849</guid>
      <dc:creator />
      <dc:date>2011-02-28T11:34:12Z</dc:date>
    </item>
    <item>
      <title>SV:Re: field equals fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232489#M501850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hei try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DateInvoice={"&amp;lt;=$(#MaxDate)"}&amp;gt;} OriginalPrice)&lt;/P&gt;&lt;P&gt;where MaxDate is a Variable with the formula&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;=max(DateInvoice)-7&lt;/P&gt;&lt;P&gt;this should work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 11:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232489#M501850</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-02-28T11:47:37Z</dc:date>
    </item>
    <item>
      <title>SV:Re: field equals fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232490#M501851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;First, make sure that both InvoiceActivationDate and Max(Date) return the result in the same format. My guess is that it's not, because Max(Date) will return an integer. So something like the following would work, provided InvoiceActivationDate as a DD/MM/YYYY date format.&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={'$(=Date(max(date)))'}&amp;gt;} OriginalPrice)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Should this doesn't work, you will need first to format InvoiceActivationDate to the same format "date" is, likely in the script (it will save further time of calculation when rendering the chart).&lt;/P&gt;&lt;P&gt;Note: When you call a function within the left part of a set analysis, you need to use $(=Function()) to get it work.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 12:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232490#M501851</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-28T12:10:45Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: field equals fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232491#M501852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys! You are life savers. But i have a following problem;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to sum original price for activation dates between to dates;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;InvoiceActivationDate={'&amp;gt;=$(=Date(max(pay_date)-21))'}, {'&amp;lt;=$(=Date(max(pay_date)-14))'&amp;gt;} OriginalPrice)&lt;/P&gt;&lt;P&gt;i guess i'm doing the "and" thing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 15:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232491#M501852</guid>
      <dc:creator />
      <dc:date>2011-02-28T15:28:24Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: field equals fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232492#M501853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Check the &amp;gt;= and &amp;lt;= syntax below&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(max(pay_date)-21))&amp;lt;=$(=Date(max(pay_date)-14))'&amp;gt;} OriginalPrice)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 15:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232492#M501853</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-28T15:36:50Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: SV:Re: field equals fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232493#M501854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copied the exact script but i didn't work. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 15:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232493#M501854</guid>
      <dc:creator />
      <dc:date>2011-02-28T15:53:34Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: SV:Re: field equals fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232494#M501855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Make sure that the Date(Max(pay_date) -14) expression returns something with the same format that your InvoiceActivationDate values. Otherwise you will need to format it in the set analysis.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 16:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232494#M501855</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-28T16:05:03Z</dc:date>
    </item>
    <item>
      <title>SV:Re: SV:Re: SV:Re: SV:Re: field equals fields in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232495#M501856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It does, because i have it as a statement in the header of the column.&lt;/P&gt;&lt;P&gt;YYY-MM-DD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 16:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/field-equals-fields-in-set-analysis/m-p/232495#M501856</guid>
      <dc:creator />
      <dc:date>2011-02-28T16:10:16Z</dc:date>
    </item>
  </channel>
</rss>

