<?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: Expression syntax question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522327#M555320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Effective_Date is a field generated through the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Effective_Date = {$(=max({1} Effective_Date))}&amp;gt;} Duration_In_Minutes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as my expression it returned no data.&amp;nbsp; I'll continue to take a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jul 2013 21:57:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-24T21:57:19Z</dc:date>
    <item>
      <title>Expression syntax question</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522325#M555318</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’m struggling with setting up an expression to be used in a chart.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dimension is Job_Group&lt;/P&gt;&lt;P&gt;My expression is sum(Duration_In_Minutes) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I’m trying to achieve is that the expression display data only for the most recent Effective_Date (max Effective_Date?).&amp;nbsp; The chart also needs to be set up so that it doesn’t restrict data based on any other filtering done within the rest of the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any guidance would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 21:38:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522325#M555318</guid>
      <dc:creator />
      <dc:date>2013-07-24T21:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax question</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522326#M555319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'most recent Effective Date' in global / document context?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try maybe something like this as expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Effective_Date = {$(=max({1} Effective_Date))}&amp;gt;} Duration_In_Minutes)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 21:45:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522326#M555319</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-07-24T21:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax question</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522327#M555320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Effective_Date is a field generated through the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I used &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({1&amp;lt;Effective_Date = {$(=max({1} Effective_Date))}&amp;gt;} Duration_In_Minutes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as my expression it returned no data.&amp;nbsp; I'll continue to take a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 21:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522327#M555320</guid>
      <dc:creator />
      <dc:date>2013-07-24T21:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax question</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522328#M555321</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;Is Effective_Date a dimension in your chart? Then I'd try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13747036343404351" jivemacro_uid="_13747036343404351"&gt;&lt;P&gt;Sum(&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;If(Effective_Date = Max(Effective_Date), &lt;/SPAN&gt;Duration_In_Minutes))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use it first with a few rows loaded just to check if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2013 22:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522328#M555321</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-07-24T22:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax question</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522329#M555322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dimension I'm using is Job_Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think my expression in my chart needs to be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt; &lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Effective_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {max(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Effective_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)}&amp;gt;} Duration_In_Minutes) &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm missing something with my syntax - something is wrong as I'm getting an error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 15:13:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522329#M555322</guid>
      <dc:creator />
      <dc:date>2013-07-25T15:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax question</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522330#M555323</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;In regards to syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13747697852883328" jivemacro_uid="_13747697852883328"&gt;&lt;P&gt;= {$(=max(Effective_Date))}&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return a numeric value if Effective_Date has a dual date value (the usual in QlikView). Another option is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13747698421739515" jivemacro_uid="_13747698421739515"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;= {"$(=Date(max(Effective_Date)), 'YYYYMMDD')"}&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should the date is in YYYYMMDD format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 16:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522330#M555323</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2013-07-25T16:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax question</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522331#M555324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Count({1&amp;lt;Date={"$(=Max(Date))"}&amp;gt;}Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=sum&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;Effective_Date&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt; = {"$(=max(&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;Effective_Date&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;))"}&amp;gt;} Duration_In_Minutes)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 16:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522331#M555324</guid>
      <dc:creator>nizamsha</dc:creator>
      <dc:date>2013-07-25T16:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax question</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522332#M555325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Miguel and Nizamsha - very helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 18:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-question/m-p/522332#M555325</guid>
      <dc:creator />
      <dc:date>2013-07-25T18:37:17Z</dc:date>
    </item>
  </channel>
</rss>

