<?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 Help with Only function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Only-function/m-p/260955#M1189449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mrchristopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you could use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Workday&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt; = {"=$(=max(InvoiceDate))"} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;CountofDays&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: calibri,verdana,arial,sans-serif;"&gt;But you need to assure that InvoiceDate and Workdays are really dates to get the match, not timestamps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: calibri,verdana,arial,sans-serif;"&gt;(I think WorkDay is a date, just formatted with hours, right?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 10:33:07 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-09-14T10:33:07Z</dc:date>
    <item>
      <title>Help with Only function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Only-function/m-p/260954#M1189448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;I’m trying to write an expression similar to a vlookup in excel, however, I’m struggling as soon as I try to introduce a variable into the formula.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;From the following data I want to pick out the CountofDays:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;TrnMonth&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;Workday&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;CountofDays&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;01/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;02/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;05/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;06/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;07/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;5&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;08/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;6&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;09/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;7&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;12/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;8&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;13/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;9&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;14/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;10&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;15/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;11&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;16/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;12&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;19/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;13&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;20/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;14&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;21/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;15&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;22/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;16&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;23/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;17&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;26/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;18&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;27/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;19&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;28/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;20&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;29/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;21&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;9&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;30/09/2011 00:00&lt;SPAN style="mso-tab-count: 1;"&gt; &lt;/SPAN&gt;22&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;SPAN style="mso-bidi-font-size: 11.0pt; color: #365f91; font-size: 10pt; mso-ascii-font-family: Calibri; mso-themecolor: accent1; mso-hansi-font-family: Calibri; font-family: Calibri; mso-themeshade: 191;"&gt;Therefore to pick out today I use the following expression &lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Workday&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt; = {'14/09/2011 00:00:00'} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;CountofDays&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: calibri, verdana, arial, sans-serif; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 12pt; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="color: #365f91; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: accent1; mso-themeshade: 191;"&gt;I now want to include the last invoice date to show the number of days done i.e. max(InvoiceDate), however, my best attempts are not working. Please can you help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: Times New Roman;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 10:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Only-function/m-p/260954#M1189448</guid>
      <dc:creator>mrchristopher</dc:creator>
      <dc:date>2011-09-14T10:08:47Z</dc:date>
    </item>
    <item>
      <title>Help with Only function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Only-function/m-p/260955#M1189449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mrchristopher,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you could use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 9pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;Workday&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt; = {"=$(=max(InvoiceDate))"} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-size: 9pt;"&gt;CountofDays&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: calibri,verdana,arial,sans-serif;"&gt;But you need to assure that InvoiceDate and Workdays are really dates to get the match, not timestamps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: calibri,verdana,arial,sans-serif;"&gt;(I think WorkDay is a date, just formatted with hours, right?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-family: calibri,verdana,arial,sans-serif;"&gt;Stefan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 10:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Only-function/m-p/260955#M1189449</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-09-14T10:33:07Z</dc:date>
    </item>
    <item>
      <title>Help with Only function</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Only-function/m-p/260956#M1189450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan, I've now wrapped the two date fields with the Date function in the script and with a little bit of editing I got the expression working:&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="color: #0000ff; font-size: 8pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Workday&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=max([InvoiceDate]))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CountofDays&lt;/SPAN&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;&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;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 10:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Only-function/m-p/260956#M1189450</guid>
      <dc:creator>mrchristopher</dc:creator>
      <dc:date>2011-09-14T10:58:20Z</dc:date>
    </item>
  </channel>
</rss>

