<?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 AW:Re: Aggr - Max - Date in Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221643#M74440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonas,&lt;/P&gt;&lt;P&gt;did take a look at your problems today. But I wasn't able to catch exactly all the things you want to achieve. Are you able to post a little exam app to clearify some details?&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Dec 2010 15:30:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-16T15:30:05Z</dc:date>
    <item>
      <title>Aggr - Max - Date in Date</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221637#M74434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;BR /&gt;&lt;BR /&gt;I have a big problem on some Expressions. I get some numbers here, but the are not right at all. I tried alot with aggr und total and {1}, but nothing worked.&lt;/P&gt;&lt;P&gt;How can I get something like this to work:&lt;/P&gt;&lt;P&gt;=Sum( {&amp;lt;date={"&amp;lt;$(=max({&amp;lt;date={"&amp;lt;=$(lastdate )"},profit-={}&amp;gt;} date))"}&amp;gt;} profitplus)&lt;BR /&gt;-Sum( {&amp;lt;date={"&amp;lt;$(=max({&amp;lt;date={"&amp;lt;=$(lastdate )"},profit-={}&amp;gt;} date))"}&amp;gt;} profitminus)&lt;/P&gt;&lt;P&gt;I want all records labled with date&amp;lt;lastdate und profit&amp;lt;&amp;gt;0. For now I think it is impossible &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; . Perhaps Aggr would help but I can't get it working.&lt;/P&gt;&lt;P&gt;Here another try:&lt;BR /&gt;=Sum(If(date &amp;lt; Aggr(max(If(date&amp;lt;=$(lastdate) AND profit &amp;lt;&amp;gt; '',date),dimension),profitplus)&lt;BR /&gt;-Sum(If(date &amp;lt; Aggr(max(If(date&amp;lt;=$(lastdate) AND profit &amp;lt;&amp;gt; '',date),dimension),profitminus)&lt;/P&gt;&lt;P&gt;Greets,&lt;BR /&gt;Jonas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 14:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221637#M74434</guid>
      <dc:creator />
      <dc:date>2010-12-13T14:33:29Z</dc:date>
    </item>
    <item>
      <title>Aggr - Max - Date in Date</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221638#M74435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this a try:&lt;/P&gt;&lt;P&gt;Sum({1} if(date &amp;lt;= '$(lastdate)' and profit &amp;lt;&amp;gt; 0, profitplus)) -&lt;BR /&gt;Sum({1} if(date &amp;lt;= '$(lastdate)' and profit &amp;lt;&amp;gt; 0, profitminus))&lt;/P&gt;&lt;P&gt;This expression is to ignore all selections.&lt;/P&gt;&lt;P&gt;I might be wrong (if I dint the requirement right!!!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 15:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221638#M74435</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2010-12-13T15:16:39Z</dc:date>
    </item>
    <item>
      <title>Aggr - Max - Date in Date</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221639#M74436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if I understand the exact situation, but maybe this thread can help you:&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/p/37661/148129.aspx#148129&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is lastdate the same for everything (like the last date in a year) or is it different by record (like a customer's last invoice date, which will be different for different customers)? If it changes, that thread will probably give you what you want. Otherwise, set analysis is probably better (and faster). I didn't really look at Rocky's suggestion but something along those lines is probably b est.&lt;/P&gt;&lt;P&gt;Again, I'm not exactly sure what you want without an example, but whenever I have something like sum(if(aggr( I've always had it as sum(aggr(if. That &lt;I&gt;certainly&lt;/I&gt; doesn't mean that what you wrote it wrong, but maybe it's worth considering.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 16:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221639#M74436</guid>
      <dc:creator />
      <dc:date>2010-12-13T16:07:16Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Aggr - Max - Date in Date</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221640#M74437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;lastdate is always the same but the date by provit &amp;lt;&amp;gt; 0 differs each record. thats my problem in this case. I'll try this solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rockys did not the sulution.&lt;/P&gt;&lt;P&gt;provit &amp;lt;&amp;gt; 0 should change the selected max date, not the selection of all records in sum. the max-date of used records should by smaller lastdate and smaller the last date in record with provit &amp;lt;&amp;gt; 0. So if I set lastdate on 31.12.2008 and last record with provit &amp;lt;&amp;gt; 0 is on 06.05.2008 it should only use records up to this date, even if there is another provit &amp;lt;&amp;gt; 0 in 2009.&lt;/P&gt;&lt;P&gt;Selection of revords should be on "date &amp;lt; lastdate AND date &amp;lt; aggr(max({1&amp;lt;provit-={}&amp;gt;}date),group)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;The other thread could not help me. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This one gives me the right date for each of my Dimensions. But it doesn't work together with my other Expressions.&lt;BR /&gt;=max({1&amp;lt;date={"&amp;lt;=$(lastdate)"},provit-={}&amp;gt;} date)&lt;/P&gt;&lt;P&gt;I need something like this - but if do not work...&lt;BR /&gt;=Sum( {1&amp;lt;date={"&amp;lt;$(=max({1&amp;lt;date={"&amp;lt;=$(lastdate)"},provit-={}&amp;gt;} date))"}&amp;gt;} value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 16:48:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221640#M74437</guid>
      <dc:creator />
      <dc:date>2010-12-13T16:48:45Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Aggr - Max - Date in Date</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221641#M74438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one takes me closest to solution:&lt;BR /&gt;=Sum( If(date&amp;lt; Aggr(max({1} If(date&amp;lt;='$(lastdate)' AND ISNUM(provit),date)),group), value))&lt;/P&gt;&lt;P&gt;Problem here is, QV now just takes the first record found in positiv If-clause. Each following record also in right if-clause is not in Sum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 08:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221641#M74438</guid>
      <dc:creator />
      <dc:date>2010-12-14T08:25:35Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Aggr - Max - Date in Date</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221642#M74439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my Formula to get the right date:&lt;BR /&gt;=Max(total &amp;lt;WG_NrUnrBez&amp;gt; IF(Anlagedatum &amp;lt;= '$(Enddatum)' AND ISNUM(Zugänge), Anlagedatum))&lt;/P&gt;&lt;P&gt;Is QlikView able to use this in an calculation as compare? Something like this:&lt;BR /&gt;=Sum( If(Anlagedatum &amp;lt; max(total &amp;lt;WG_NrUnrBez&amp;gt; IF(Anlagedatum &amp;lt;= '$(Enddatum)' AND ISNUM(Zugänge), Anlagedatum)),Zugänge ))&lt;/P&gt;&lt;P&gt;I am on this for days now &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; . Nothing seems to work. Someone has an Idea for me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 14:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221642#M74439</guid>
      <dc:creator />
      <dc:date>2010-12-15T14:59:18Z</dc:date>
    </item>
    <item>
      <title>AW:Re: Aggr - Max - Date in Date</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221643#M74440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonas,&lt;/P&gt;&lt;P&gt;did take a look at your problems today. But I wasn't able to catch exactly all the things you want to achieve. Are you able to post a little exam app to clearify some details?&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 15:30:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Max-Date-in-Date/m-p/221643#M74440</guid>
      <dc:creator />
      <dc:date>2010-12-16T15:30:05Z</dc:date>
    </item>
  </channel>
</rss>

