<?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 comparison with set analysis and variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924696#M963077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take care that your expanded variables match the format of your timestamp field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= count (DISTINCT {1&amp;lt;KC_Instanz.BESTELLT_AM = {"&amp;gt;$(=Timestamp($(eAuswerteSTART)))&amp;lt;= $(=Timestamp(eAuswerteENDE)))"}&amp;gt;} KompC.DATEINAME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Oct 2015 14:02:31 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-10-21T14:02:31Z</dc:date>
    <item>
      <title>Date comparison with set analysis and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924694#M963075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for the question, I read a lot in the forums but still could not solve my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to count the number of records in a table where the field KC_Instanz.BESTELLT_AM falls into a timeframe between variable eAuswerteSTART and eAuswerteENDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables are defined in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;eAuswerteSTART&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=MakeWeekDate(vAuswertung_Year,vAuswertung_KW,3)+MakeTime(12);&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SET&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;eAuswerteENDE&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; =MakeWeekDate(vAuswertung_Year,vAuswertung_KW+1,3)+MakeTime(11,59); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the variables vAuswertung_Year,vAuswertung_KW can be set using an InputBox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When checking them with a textbox:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;'Auswertung für: KW '&amp;amp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vAuswertung_KW&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(10)&lt;BR /&gt; &amp;amp;'Von: '&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(eAuswerteSTART)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(10)&lt;BR /&gt; &amp;amp;'Bis: '&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(eAuswerteENDE)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(10)&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;all looks good, I get a date-time-format as "12.03.2015 12:002 for the start...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now trying to count the records I try...&lt;/P&gt;&lt;P&gt;= count (DISTINCT {1&amp;lt;KC_Instanz.BESTELLT_AM = {"&amp;gt;$(=eAuswerteSTART) &amp;lt;= $(=eAuswerteENDE)"}&amp;gt;} KompC.DATEINAME)&amp;amp;chr(10) &lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; ... but it always returns to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot Oliver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 22:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924694#M963075</guid>
      <dc:creator />
      <dc:date>2015-10-19T22:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison with set analysis and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924695#M963076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try count ({1&amp;lt;KC_Instanz.BESTELLT_AM = {"&amp;gt;$(eAuswerteSTART)&amp;lt;= $(eAuswerteENDE)"}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DISTINCT &lt;/SPAN&gt;KompC.DATEINAME)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 13:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924695#M963076</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-21T13:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison with set analysis and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924696#M963077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take care that your expanded variables match the format of your timestamp field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= count (DISTINCT {1&amp;lt;KC_Instanz.BESTELLT_AM = {"&amp;gt;$(=Timestamp($(eAuswerteSTART)))&amp;lt;= $(=Timestamp(eAuswerteENDE)))"}&amp;gt;} KompC.DATEINAME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 14:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924696#M963077</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-21T14:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison with set analysis and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924697#M963078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;thanks for your answers. Unfortunately they still return 0 into my text box...&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;I tried these expressions in text box to find if formats match and when selecting one record it looks good:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;=Timestamp($(eAuswerteENDE))&amp;amp;chr(10) --&amp;gt;Do 22.10.2015 12:00&lt;/LI&gt;&lt;LI&gt;=Timestamp(KC_Instanz.BESTELLT_AM )&amp;amp;chr(10)&amp;nbsp; --&amp;gt;Di 20.10.2015 16:22&lt;/LI&gt;&lt;LI&gt;=KC_Instanz.BESTELLT_AM &amp;amp;chr(10)&amp;nbsp; --&amp;gt;Di 20.10.2015 16:22&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;=if(KC_Instanz.BESTELLT_AM &amp;gt;=(Timestamp($(eAuswerteSTART))),'found') --&amp;gt;found&lt;/LI&gt;&lt;LI&gt;=if(KC_Instanz.BESTELLT_AM &amp;gt;=$(eAuswerteSTART),'found') --&amp;gt;found&lt;/LI&gt;&lt;/UL&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt; So data formats seem to match, data can be found but still the set analysis does only print 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;I cannot figure out what I do wrong…&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;An example table contains these data&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: 1pt solid #a3a3a3; border-image: none;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 4pt; border: 1pt solid #a3a3a3; border-image: none; background-color: whitesmoke;"&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;KC_Instanz.BESTELLT_AM&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt; border: 1pt solid #a3a3a3; border-image: none; background-color: whitesmoke;"&gt;&lt;P&gt;ISCO.STATUS&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;KompC.DATEINAME&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 4pt; border: 1pt solid #a3a3a3; border-image: none; background-color: white;"&gt;&lt;P style="text-align: right; color: #333333; font-family: Tahoma; font-size: 8pt;"&gt;Do 22.10.2015 11:27&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt; border: 1pt solid #a3a3a3; border-image: none; background-color: white;"&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;final&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt; border: 1pt solid #a3a3a3; border-image: none; background-color: white;"&gt;&lt;P style="color: #333333; font-family: Tahoma; font-size: 8pt;"&gt;TEST1__MDE01__001_010_F20_025.004_000_017.pdx&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 4pt; border: 1pt solid #a3a3a3; border-image: none; background-color: white;"&gt;&lt;P style="text-align: right; color: #333333; font-family: Tahoma; font-size: 8pt;"&gt;Di 20.10.2015 16:22&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt; border: 1pt solid #a3a3a3; border-image: none; background-color: white;"&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;final&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt; border: 1pt solid #a3a3a3; border-image: none; background-color: white;"&gt;&lt;P style="color: #333333; font-family: Tahoma; font-size: 8pt;"&gt;TEST2__DDXE701__025.007_022_153.pdx&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 4pt; border: 1pt solid #a3a3a3; border-image: none; background-color: white;"&gt;&lt;P style="text-align: right; color: #333333; font-family: Tahoma; font-size: 8pt;"&gt;Di 20.10.2015 12:23&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt; border: 1pt solid #a3a3a3; border-image: none; background-color: white;"&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;final&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 4pt; border: 1pt solid #a3a3a3; border-image: none; background-color: white;"&gt;&lt;P style="color: #333333; font-family: Tahoma; font-size: 8pt;"&gt;TEST3__MXEVD172G__025.000_000_099.pdx&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt; =count (distinct {$&amp;lt;ISCO.STATUS={'final'}&amp;gt;} EE_Komponente.NAME) --&amp;gt;3 (so it works)&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;But when I start using timestamps together with set analysis I always get 0:&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Even these (more basic) expresseions returns 0 each&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;&amp;amp; count (&amp;nbsp; {$&amp;lt;KC_Instanz.BESTELLT_AM= {"&amp;lt;(=now())"} &amp;gt;} KompC.DATEINAME)&amp;amp;chr(10)&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;&amp;amp; count (&amp;nbsp; {$&amp;lt;KC_Instanz.BESTELLT_AM= {"&amp;lt;(=(timestamp(=now()))"} &amp;gt;} KompC.DATEINAME)&amp;amp;chr(10)&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Any idea someone? Something wrong with my data? &lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11pt;"&gt;Thanks Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 09:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924697#M963078</guid>
      <dc:creator />
      <dc:date>2015-10-23T09:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison with set analysis and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924698#M963079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your last two expressions, you are missing dollar signs for dollar sign expansion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&amp;amp; count (&amp;nbsp; {$&amp;lt;KC_Instanz.BESTELLT_AM= {"&amp;lt;$(=now())"} &amp;gt;} KompC.DATEINAME)&amp;amp;chr(10)&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&amp;amp; count (&amp;nbsp; {$&amp;lt;KC_Instanz.BESTELLT_AM= {"&amp;lt;$(=timestamp(now()))"} &amp;gt;} KompC.DATEINAME)&amp;amp;chr(10)&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;Your standard time format seems to be modified to include the weekday abbreviation (Mo, Di, Mi). is this correct?&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri; color: #3d3d3d;"&gt;Doing something like&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;=if(KC_Instanz.BESTELLT_AM &amp;gt;=(Timestamp($(eAuswerteSTART))),'found') --&amp;gt;found&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will not necessarily compare the text formats, when using dual() values, these comparisons will match on number representation, I believe. So it's not a 100% indicator that your formats for set analysis match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to avoid the trouble with formats, you can either create a numeric field and match with numbers only (but looking at the fact you are using floating points (Timestamps), you might run into trouble even then (separator not matching).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or force QV to match the numeric interpretation with your existing field, like in your if() statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6667px;"&gt;count (&amp;nbsp; {$&amp;lt;KC_Instanz.BESTELLT_AM= {"=&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6667px;"&gt;KC_Instanz.BESTELLT_AM &lt;/SPAN&gt;&amp;lt; $(=num(now(),'#.######','.',','))"} &amp;gt;} KompC.DATEINAME)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6667px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6667px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6667px;"&gt;edit:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6667px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: Calibri; font-size: 14.6667px;"&gt;If you can upload a small sample QVW, that would help us to help you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 10:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924698#M963079</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-23T10:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison with set analysis and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924699#M963080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey thanks a lot,&lt;/P&gt;&lt;P&gt;that gets me a lot closer to the solution - seems to be a formatting issue indeed. You are right, I had modified the standard timestamp format. Now using num() looks better:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only I still I got an issue:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;KC_Instanz.BESTELLT_AM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=KC_Instanz.&lt;SPAN style="color: #800000;"&gt;BESTELLT&lt;/SPAN&gt;_AM &amp;gt; $(=num($(eAuswerteSTART),'#.######','.',','))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;KompC.DATEINAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(10)&lt;BR /&gt; &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;KC_Instanz.&lt;SPAN style="color: #800000;"&gt;BESTELLT&lt;/SPAN&gt;_AM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=KC_Instanz.&lt;SPAN style="color: #800000;"&gt;BESTELLT&lt;/SPAN&gt;_AM &amp;lt;= $(=num($(eAuswerteENDE),'#.######','.',','))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;KompC.DATEINAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(10)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;work out fine counting the correct numbers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Only when I try to combine both I still get 0:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;KC_Instanz.&lt;SPAN style="color: #800000;"&gt;BESTELLT&lt;/SPAN&gt;_AM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=KC_Instanz.&lt;SPAN style="color: #800000;"&gt;BESTELLT&lt;/SPAN&gt;_AM &amp;lt;$(=num($(eAuswerteENDE),'#.######','.',',')) &amp;gt;$(=num($(eAuswerteSTART),'#.######','.',',')) "&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;KompC.DATEINAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;chr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(10)&lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Unforthunately I must not upload my qvw due to company rules... I may only try to create similar data-qvw on the weekend if it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks Oliver&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 12:23:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924699#M963080</guid>
      <dc:creator />
      <dc:date>2015-10-23T12:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison with set analysis and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924700#M963081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the modified search expression logic you need to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #f2f2f2;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000; background-color: #f2f2f2;"&gt;KC_Instanz.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10.6667px; font-family: inherit;"&gt;BESTELLT&lt;/SPAN&gt;_AM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000; background-color: #f2f2f2;"&gt;"=KC_Instanz.&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10.6667px; font-family: inherit;"&gt;BESTELLT&lt;/SPAN&gt;_AM &amp;lt;$(=num($(eAuswerteENDE),'#.######','.',',')) AND KC_Instanz.BESTELLT_AM &amp;gt;$(=num($(eAuswerteSTART),'#.######','.',',')) "&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000; background-color: #f2f2f2;"&gt;KompC.DATEINAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 14:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924700#M963081</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-23T14:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison with set analysis and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924701#M963082</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;thanks so much!!!!! You made my weekend &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; !!!!&lt;/P&gt;&lt;P&gt;Finally with your modification now it works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 15:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-with-set-analysis-and-variable/m-p/924701#M963082</guid>
      <dc:creator />
      <dc:date>2015-10-23T15:05:39Z</dc:date>
    </item>
  </channel>
</rss>

