<?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: Formatting problem? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892502#M471062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a Little test with yur script and with a small inline table&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Ergebnisse_Vgl_#1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Versanddatum_BMW, Endkosten&lt;BR /&gt; 01.04.2015, 1000&lt;BR /&gt; 02.04.2015, 2000&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The result is also 0 datarows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;but when i Change Tagesdatum2 to Tagesdatum (which still is in the old data Format), I get 1 datarow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I donot know why comparison of 2 different dateformats is working (YYYYMMDD compared to DD.MM.YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&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;v_current_date&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;PEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Versanddatum', 0, 'Ergebnis_#1_Tagessummen'); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Does it help in your case too?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2015 10:06:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-04-10T10:06:26Z</dc:date>
    <item>
      <title>Formatting problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892501#M471061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing an issue I just cannot get to the bottom of:&lt;/P&gt;&lt;P&gt;- I have a file where there is a date_value (originally in the format of 'DD.MM.YYYY') in every row;&lt;/P&gt;&lt;P&gt;- I can easily format that to the format of 'YYYYMMDD' (to avoid the dots which could be problematic in other functions)&lt;/P&gt;&lt;P&gt;- (Background: That file is an aggregation of my base_file)&lt;/P&gt;&lt;P&gt;- Then I want to open a loop and parse that small file line by line (day by day, that is) and extract all info from the base_file where I have&lt;BR /&gt;&amp;nbsp;&amp;nbsp; that date.&lt;/P&gt;&lt;P&gt;- In the WHERE clause, I use the exact same date_format (I have to reformat it, but I know that that works as the file_to_parse also comes from that same base_file)&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; Still I get 0 records!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will attach two things to this post:&lt;/P&gt;&lt;P&gt;- The qvd file I have created from that base_file&lt;/P&gt;&lt;P&gt;- The script code I am currently using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for any help here!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: I have checked several times that my date_variable is numeric, just like the field in the table, so I cannot understand why comparing them should produce 0 records ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 09:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892501#M471061</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-04-10T09:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892502#M471062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a Little test with yur script and with a small inline table&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Ergebnisse_Vgl_#1:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Versanddatum_BMW, Endkosten&lt;BR /&gt; 01.04.2015, 1000&lt;BR /&gt; 02.04.2015, 2000&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The result is also 0 datarows.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;but when i Change Tagesdatum2 to Tagesdatum (which still is in the old data Format), I get 1 datarow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I donot know why comparison of 2 different dateformats is working (YYYYMMDD compared to DD.MM.YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&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;v_current_date&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;PEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Versanddatum', 0, 'Ergebnis_#1_Tagessummen'); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Does it help in your case too?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 10:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892502#M471062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-10T10:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892503#M471063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Data,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looks like Versanddatum2 is in the YYYYMMDD format? but in your QVD Versanddatum_BMW has the decimals.&lt;/P&gt;&lt;P&gt;So don't think you will just be able to date your where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll need to use Date# first then date in your where clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE( DATE#(Versanddatum_BMW, 'DD.MM.YYYY'), 'YYYYMMDD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 10:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892503#M471063</guid>
      <dc:creator />
      <dc:date>2015-04-10T10:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892504#M471064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works now - but it's very strange and the worst is, I have no idea why it works now and didn't work before ...&lt;/P&gt;&lt;P&gt;I wrapped the date (in the old format 'DD.MM.YYYY') in quoted and in another DATE() function now - that way works.&lt;/P&gt;&lt;P&gt;=&amp;gt; It now looks like &amp;gt;&amp;gt; DATE('$(v_current_date)')&amp;nbsp; &amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ JoeSimmons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That with the decimals could be - but actually I use the very same DATE() function on the very same table twice - first I aggregate the base_file to a table holding all the distinct dates and then I parse that to split the very same base_file into slices - so there's no apparent reason why the results should not be comparable ... I'll try anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 10:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892504#M471064</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-04-10T10:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892505#M471065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm interesting, I was thinking the decimals was causing problems if it wasn't treated the value as a proper number and so failing the date function. If that's not the case though I'm not sure, would be good if you could upload an example or your full script.&lt;/P&gt;&lt;P&gt;As you say should be fine if it's form the same base file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 10:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892505#M471065</guid>
      <dc:creator />
      <dc:date>2015-04-10T10:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892506#M471066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's very simple: If you load all the fields from the qvd file I have attached - that is the base_file (I have a STORE command just before that piece of code I attached).&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 11:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892506#M471066</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-04-10T11:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892507#M471067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Try the below, as it's a real date field there will be a numerical value underlying, so should be able to use num instead&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&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;v_current_date&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;PEEK&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Versanddatum2', 0, 'Ergebnis_#1_Tagessummen'));&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Drop&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Ergebnis_#1_Tagessummen;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//&amp;nbsp; LET v_current_date = DATE('$(v_current_date)', 'YYYYMMDD');&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;BMW_only_Tagessumme:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Versanddatum_BMW&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'YYYYMMDD') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Versanddatum_BMW_3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;RESIDENT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Ergebnisse_Vgl_#1&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Versanddatum_BMW&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = '$(v_current_date)'&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 13:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-problem/m-p/892507#M471067</guid>
      <dc:creator />
      <dc:date>2015-04-10T13:01:18Z</dc:date>
    </item>
  </channel>
</rss>

