<?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: Help with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844365#M1019028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this, I have not tested it, but I think it should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Courier New'; text-decoration: line-through;"&gt;=C&lt;/SPAN&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Courier New'; color: blue; text-decoration: line-through;"&gt;ount&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px; text-decoration: line-through;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Courier New'; color: blue; text-decoration: line-through;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px; text-decoration: line-through;"&gt;{&amp;lt;[Date Finisted] = {'=M&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Courier New'; color: blue; text-decoration: line-through;"&gt;ax&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px; text-decoration: line-through;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Courier New'; color: maroon; text-decoration: line-through;"&gt;[Date Finished]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px; text-decoration: line-through;"&gt;)&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Courier New'; color: maroon; text-decoration: line-through;"&gt;[Date of Completion Escalation]'}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px; text-decoration: line-through;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Courier New'; color: maroon; text-decoration: line-through;"&gt;[Work Request Code]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px; text-decoration: line-through;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px;"&gt;Sunny&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2015 10:16:36 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-04-02T10:16:36Z</dc:date>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844364#M1019027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need help with writing an expression!&lt;/P&gt;&lt;P&gt;I'm trying to create a dashboard to show KPI targets, and one of them is to messure actual completion dates against SLA completion date for work orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to count all the work orders where the &lt;SPAN style="text-decoration: underline;"&gt;Date Finished&lt;/SPAN&gt; is less than the &lt;SPAN style="text-decoration: underline;"&gt;Date Escalated for Completion&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ultimately this would be to compare to a count of all completed work orders to messure against the 70% KPI target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Couple of things I need to cater for within the expression:&amp;nbsp; A work order could have multiple engineer visits, the &lt;SPAN style="text-decoration: underline;"&gt;Date Finished&lt;/SPAN&gt; field is from the time record of each engineer visit, so it is the latest engineer visit we are using in the KPI against the SLA completion date for the work order.&amp;nbsp; So I'm using "max([Date Finished]) to get this - if this is the correct or best way to go about this!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far i've tried the following expression (in a text object), which I know doesn't work, but its a starter to try show what I'm doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-fareast-language: EN-GB; mso-bidi-language: AR-SA; font-size: 10pt; mso-ansi-language: EN-GB; font-family: 'Courier New'; mso-fareast-theme-font: minor-latin; mso-fareast-font-family: Calibri;"&gt;=&lt;SPAN style="color: blue;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: blue;"&gt;DISTINCT&lt;/SPAN&gt;{&amp;lt;&lt;SPAN style="color: blue;"&gt;max&lt;/SPAN&gt;(&lt;SPAN style="color: maroon;"&gt;[Date Finished]&lt;/SPAN&gt;)&amp;lt;&lt;SPAN style="color: maroon;"&gt;[Date of Completion Escalation]&lt;/SPAN&gt;&amp;gt;},&lt;SPAN style="color: maroon;"&gt;[Work Request Code]&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-fareast-language: EN-GB; mso-bidi-language: AR-SA; font-size: 10pt; mso-ansi-language: EN-GB; font-family: 'Courier New'; mso-fareast-theme-font: minor-latin; mso-fareast-font-family: Calibri;"&gt;Any ideas how to get the right calculation/expression???&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-fareast-language: EN-GB; mso-bidi-language: AR-SA; font-size: 10pt; mso-ansi-language: EN-GB; font-family: 'Courier New'; mso-fareast-theme-font: minor-latin; mso-fareast-font-family: Calibri;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-fareast-language: EN-GB; mso-bidi-language: AR-SA; font-size: 10pt; mso-ansi-language: EN-GB; font-family: 'Courier New'; mso-fareast-theme-font: minor-latin; mso-fareast-font-family: Calibri;"&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 10:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844364#M1019027</guid>
      <dc:creator />
      <dc:date>2015-04-02T10:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844365#M1019028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this, I have not tested it, but I think it should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333330154419px; font-family: 'Courier New'; text-decoration: line-through;"&gt;=C&lt;/SPAN&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Courier New'; color: blue; text-decoration: line-through;"&gt;ount&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px; text-decoration: line-through;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Courier New'; color: blue; text-decoration: line-through;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px; text-decoration: line-through;"&gt;{&amp;lt;[Date Finisted] = {'=M&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Courier New'; color: blue; text-decoration: line-through;"&gt;ax&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px; text-decoration: line-through;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Courier New'; color: maroon; text-decoration: line-through;"&gt;[Date Finished]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px; text-decoration: line-through;"&gt;)&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Courier New'; color: maroon; text-decoration: line-through;"&gt;[Date of Completion Escalation]'}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px; text-decoration: line-through;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Courier New'; color: maroon; text-decoration: line-through;"&gt;[Work Request Code]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px; text-decoration: line-through;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Courier New'; font-size: 13.3333330154419px;"&gt;Sunny&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 10:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844365#M1019028</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-02T10:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844366#M1019029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually this may not work. Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;STRONG&gt;Count(DISTINCT If(Max([Date Finished]) &amp;lt; [Date of Completion Escalation], [Work Request Code]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 10:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844366#M1019029</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-02T10:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844367#M1019030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried, still gives me "Error in expression" and no value in text object!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 10:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844367#M1019030</guid>
      <dc:creator />
      <dc:date>2015-04-02T10:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844368#M1019031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=count(DISTINCT if ([Date of Completion Escalation] &amp;gt; aggr({1} max([Date Finished]), [Work Request Code]), [Work Request Code]))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 10:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844368#M1019031</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-04-02T10:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844369#M1019032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to work, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 11:56:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/844369#M1019032</guid>
      <dc:creator />
      <dc:date>2015-04-02T11:56:17Z</dc:date>
    </item>
  </channel>
</rss>

