<?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: Date variable and set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887779#M532489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;My suggestion is to have no spaces between your variable name (Something like this would be ideal &lt;STRONG&gt;vDataBase&lt;/STRONG&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;&lt;BR /&gt;&lt;/STRONG&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;Try this:&lt;BR /&gt;&lt;/STRONG&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;=Money(Sum({&amp;lt;[Data Receb/Pagto]= {"$(Data Base)"}&amp;gt;} [Valor Original])) or&lt;/STRONG&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;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Money(Sum({&amp;lt;[Data Receb/Pagto]= {"$('Data Base')"}&amp;gt;} [Valor Original])) &lt;/STRONG&gt;&lt;/STRONG&gt;(never worked with variables which have a space between them, so not sure how can they be used and that's why I suggest using vDataBase)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do use vDataBase then you can try this:&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;=Money(Sum({&amp;lt;[Data Receb/Pagto]= {"$(vDataBase)"}&amp;gt;} [Valor Original]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2015 12:45:53 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-05-06T12:45:53Z</dc:date>
    <item>
      <title>Date variable and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887776#M532486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a date variable associated to a calendar object. This variable should be used at the following set analysis expression (text object):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= money(sum({&amp;lt;[Data Receb/Pagto]= {$(#Data Base)}&amp;gt;} [Valor Original]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It always returns 0 (zero), although having data to sum. The &lt;SPAN style="font-size: 13.3333330154419px;"&gt;[Data Receb/Pagto] field, when used in a text object returns a "date". The "Data Base" variable, when used in a text object returns a "number". In this way, I thought that the set analysis expression should be changed, but it made no diference:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;= money(sum({&amp;lt;[Data Receb/Pagto]= {$(=#date($(#Data Base)))}&amp;gt;} [Valor Original]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;= money(sum({&amp;lt;[Data Receb/Pagto]= {$(=#num($(#Data Base)))}&amp;gt;} [Valor Original]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;What is wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Paulo Costa&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 12:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887776#M532486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-06T12:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887777#M532487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;#Date Base&lt;/STRONG&gt; is the name of your variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Money(Sum({&amp;lt;[Data Receb/Pagto]= {"$(#Data Base)"}&amp;gt;} [Valor Original]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 12:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887777#M532487</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-06T12:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887778#M532488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Data Base" is the name of my variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression that you posted made no difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 12:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887778#M532488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-06T12:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887779#M532489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;My suggestion is to have no spaces between your variable name (Something like this would be ideal &lt;STRONG&gt;vDataBase&lt;/STRONG&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;&lt;BR /&gt;&lt;/STRONG&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;Try this:&lt;BR /&gt;&lt;/STRONG&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;=Money(Sum({&amp;lt;[Data Receb/Pagto]= {"$(Data Base)"}&amp;gt;} [Valor Original])) or&lt;/STRONG&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;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Money(Sum({&amp;lt;[Data Receb/Pagto]= {"$('Data Base')"}&amp;gt;} [Valor Original])) &lt;/STRONG&gt;&lt;/STRONG&gt;(never worked with variables which have a space between them, so not sure how can they be used and that's why I suggest using vDataBase)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do use vDataBase then you can try this:&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;=Money(Sum({&amp;lt;[Data Receb/Pagto]= {"$(vDataBase)"}&amp;gt;} [Valor Original]))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 12:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887779#M532489</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-06T12:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887780#M532490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I´ve changed the variable name (elimitating blank - DataBase) and it remais the same. Zero as result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 12:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887780#M532490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-06T12:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887781#M532491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just read that your variable returns a number. Give this a try:&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;=Money(Sum({&amp;lt;[Data Receb/Pagto] = {"$(=Date($(DataBase), '&lt;/STRONG&gt;yourDateFormat&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'))"}&amp;gt;} [Valor Original]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace &lt;STRONG&gt;yourDateFormat&lt;/STRONG&gt; with whatever format you have for &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Data Receb/Pagto]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 12:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887781#M532491</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-06T12:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Date variable and set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887782#M532492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It´s running fine now. THANKS!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Total, com base na data base = ' &amp;amp; money(sum({&amp;lt;[Data Receb/Pagto]= {"$(=date($(DataBase),'DD/MM/YYYY'))"}&amp;gt;} [Valor Original]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 13:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-variable-and-set-analysis/m-p/887782#M532492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-06T13:04:19Z</dc:date>
    </item>
  </channel>
</rss>

