<?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: Problem with SET ANALYSIS and input field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260296#M1193482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to make sure the date is interpreted as a number. So in you model you should calcuate &lt;/P&gt;&lt;P&gt;OffenePostenHistorie.BELDATUM as number same as for vaiable below. &lt;/P&gt;&lt;P&gt;Create a variable and evalute it as:&lt;/P&gt;&lt;P&gt;vDatum = num(Date#($(FDatum),'YYYYMMDD'))&lt;/P&gt;&lt;P&gt;Then use vDatum in set analyse&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tried it myself again:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Expr : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt; TetsDateValue= {"&amp;gt;$(vDate)"}&amp;gt;} REQD_Number)&lt;/P&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;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;where TetsDateValue is calculated in model as round(Date('f'ieldwithdate') and vDate = &lt;/P&gt;&lt;P&gt;vDatum = num(Date#($(FDatum),'YYYYMMDD'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Worked for me at least&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2011 13:51:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-06T13:51:04Z</dc:date>
    <item>
      <title>Problem with SET ANALYSIS and input field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260293#M1193479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help for a problem with the set analysis function. I have a table with customer number, a creation date of an invoice and a field with the value of the invoice.&lt;/P&gt;&lt;P&gt;For the users I like to create a input box, where there can input a date. Then I like to have a sum of the invoices from the customer where the creation date is less or equal as the date in the input box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined a variable in the document (FDatum) and create a input box for this variable. The database field called: OffenePostenHistorie.BELDATUM&lt;/P&gt;&lt;P&gt;The invove value field called: OffenePostenHistorie.OBETRAG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the following set analysis function, but it doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;OffenePostenHistorie.BELDATUM &amp;lt;= {$(FDatum)}&amp;gt;} OffenePostenHistorie.OBETRAG)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The format of the date in the table is YYYYMMDD and I put a date with the same format in the input box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody give me a hint whats wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 12:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260293#M1193479</guid>
      <dc:creator />
      <dc:date>2011-07-06T12:53:45Z</dc:date>
    </item>
    <item>
      <title>Problem with SET ANALYSIS and input field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260294#M1193480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;I believe it should be:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;OffenePostenHistorie.BELDATUM = { "&amp;lt;= {$(FDatum)}"&amp;gt;} OffenePostenHistorie.OBETRAG)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 13:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260294#M1193480</guid>
      <dc:creator />
      <dc:date>2011-07-06T13:14:48Z</dc:date>
    </item>
    <item>
      <title>Problem with SET ANALYSIS and input field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260295#M1193481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help, but it doesn't work ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 13:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260295#M1193481</guid>
      <dc:creator />
      <dc:date>2011-07-06T13:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SET ANALYSIS and input field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260296#M1193482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to make sure the date is interpreted as a number. So in you model you should calcuate &lt;/P&gt;&lt;P&gt;OffenePostenHistorie.BELDATUM as number same as for vaiable below. &lt;/P&gt;&lt;P&gt;Create a variable and evalute it as:&lt;/P&gt;&lt;P&gt;vDatum = num(Date#($(FDatum),'YYYYMMDD'))&lt;/P&gt;&lt;P&gt;Then use vDatum in set analyse&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just tried it myself again:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Expr : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt; TetsDateValue= {"&amp;gt;$(vDate)"}&amp;gt;} REQD_Number)&lt;/P&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;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;where TetsDateValue is calculated in model as round(Date('f'ieldwithdate') and vDate = &lt;/P&gt;&lt;P&gt;vDatum = num(Date#($(FDatum),'YYYYMMDD'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Worked for me at least&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 13:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260296#M1193482</guid>
      <dc:creator />
      <dc:date>2011-07-06T13:51:04Z</dc:date>
    </item>
    <item>
      <title>Problem with SET ANALYSIS and input field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260297#M1193483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Try the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;OffenePostenHistorie.BELDATUM = {'&amp;lt;=$(FDatum)'}&amp;gt;} OffenePostenHistorie.OBETRAG)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&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;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 13:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260297#M1193483</guid>
      <dc:creator />
      <dc:date>2011-07-06T13:58:28Z</dc:date>
    </item>
    <item>
      <title>Problem with SET ANALYSIS and input field</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260298#M1193484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that was the sollution for me! Your set analysis definition works great...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many, many thanks to you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 14:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-SET-ANALYSIS-and-input-field/m-p/260298#M1193484</guid>
      <dc:creator />
      <dc:date>2011-07-06T14:40:07Z</dc:date>
    </item>
  </channel>
</rss>

