<?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 issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-issue/m-p/332658#M492372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll likely need to aggr() this over some field value.&lt;/P&gt;&lt;P&gt;For example, if you have multiple %Date values for your expression, which one should show?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2012 02:06:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-04T02:06:16Z</dc:date>
    <item>
      <title>expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/expression-issue/m-p/332657#M492371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I need help to solve this problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This expression in a text object returns th max date wich exists data of Group&lt;/P&gt;&lt;P&gt;=max({&amp;lt;Group-={''}&amp;gt;} %Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I use that as a calculate dimension in my chart, doesn´t work I don´t know why&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(%Date) &amp;lt;= 0, max({&amp;lt;Group-={''}&amp;gt;} %Date), %Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 19:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-issue/m-p/332657#M492371</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-07-03T19:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/expression-issue/m-p/332658#M492372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll likely need to aggr() this over some field value.&lt;/P&gt;&lt;P&gt;For example, if you have multiple %Date values for your expression, which one should show?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 02:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-issue/m-p/332658#M492372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-04T02:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/expression-issue/m-p/332659#M492373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johannes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but I don´t know if I understand your point.&lt;/P&gt;&lt;P&gt;If I use %Date as dimension, my dimension will show me in the chart all the possible dates, doesn´t matter if is one or a lot. If I select a %Date, will show me that date in every rows, but if I want the maximum date when there is no date selected, I need to calculate my dimension %Date to get this behavior and that´s what I´m trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;=if(GetSelectedCount(%Date) &amp;lt;= 0,&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;//No dates selected, is the initial state, no filters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;max({&amp;lt;Group-={''}&amp;gt;} %Date),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; //Get max(%Date) where a Group exists, I think that this returns only a date. This is what you were referring before?It´s unknown what Date must be returned??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;%Date)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;//dimension %Date, all the values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use aggr(max({&amp;lt;Group-={''}&amp;gt;}%Date),Group,%Date)&amp;nbsp;&amp;nbsp; ???&lt;/P&gt;&lt;P&gt;I can´t try it right know, that´s why I´m asking for instead trying and telling you if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank´s&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 12:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-issue/m-p/332659#M492373</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-07-04T12:51:42Z</dc:date>
    </item>
  </channel>
</rss>

