<?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 Picking The Max Date For Each Row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Picking-The-Max-Date-For-Each-Row/m-p/998800#M339593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to implement a logic in Set Analysis where there are two date fields i.e. Trade Date and business Date. One Trade Date can have one or multiple Business Dates ... I have a Straight Chart and one of the expressions is supposed to show Sales for the Max(Business Date) for the given Trade Date, which is in Dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, my expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(Sum({&amp;lt;BusinessDate={"$(=Max(Date(BusinessDate),'YYYY-MM-DD'))"}&amp;gt;} Sales), TradeDate, ItemNo, ItemGroupName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But apparently this Max date logic in Set Analysis always gives one Date, which is the Max Date for current Selections and not for each row for that Trade Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume since &lt;SPAN style="font-size: 13.3333px;"&gt;TradeDate, ItemNo and ItemGroupName are part of Dimensions, this logic should work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Nov 2015 17:30:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-27T17:30:53Z</dc:date>
    <item>
      <title>Picking The Max Date For Each Row</title>
      <link>https://community.qlik.com/t5/QlikView/Picking-The-Max-Date-For-Each-Row/m-p/998800#M339593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to implement a logic in Set Analysis where there are two date fields i.e. Trade Date and business Date. One Trade Date can have one or multiple Business Dates ... I have a Straight Chart and one of the expressions is supposed to show Sales for the Max(Business Date) for the given Trade Date, which is in Dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, my expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(Aggr(Sum({&amp;lt;BusinessDate={"$(=Max(Date(BusinessDate),'YYYY-MM-DD'))"}&amp;gt;} Sales), TradeDate, ItemNo, ItemGroupName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But apparently this Max date logic in Set Analysis always gives one Date, which is the Max Date for current Selections and not for each row for that Trade Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume since &lt;SPAN style="font-size: 13.3333px;"&gt;TradeDate, ItemNo and ItemGroupName are part of Dimensions, this logic should work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 17:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Picking-The-Max-Date-For-Each-Row/m-p/998800#M339593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-27T17:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Picking The Max Date For Each Row</title>
      <link>https://community.qlik.com/t5/QlikView/Picking-The-Max-Date-For-Each-Row/m-p/998801#M339594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis is evaluated once per chart, won't respect dimension values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try maybe&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Sum( Aggr( Sum(If( BusinessDate = Max(TOTAL&amp;lt;TradeDate, ItemNo, ItemGroupName&amp;gt; BusinessDate), Sales)), TradeDate, ItemNo, ItemGroupName, BusinessDate))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 17:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Picking-The-Max-Date-For-Each-Row/m-p/998801#M339594</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-27T17:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Picking The Max Date For Each Row</title>
      <link>https://community.qlik.com/t5/QlikView/Picking-The-Max-Date-For-Each-Row/m-p/998802#M339595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your case will be max. BusinessDate one time globally calculated before the chart-calculations one row-level happens and applied for them. Are the sales for one BusinessDate a single-value you could use firstsortedvale() for this, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(Firstsortedvalue(Sales, -BusinessDate), TradeDate, ItemNo, ItemGroupName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 17:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Picking-The-Max-Date-For-Each-Row/m-p/998802#M339595</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-11-27T17:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Picking The Max Date For Each Row</title>
      <link>https://community.qlik.com/t5/QlikView/Picking-The-Max-Date-For-Each-Row/m-p/998803#M339596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ but that didn't work. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 20:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Picking-The-Max-Date-For-Each-Row/m-p/998803#M339596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-27T20:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Picking The Max Date For Each Row</title>
      <link>https://community.qlik.com/t5/QlikView/Picking-The-Max-Date-For-Each-Row/m-p/998804#M339597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;Marcus_Sommer&lt;/A&gt;‌. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2015 20:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Picking-The-Max-Date-For-Each-Row/m-p/998804#M339597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-27T20:06:37Z</dc:date>
    </item>
  </channel>
</rss>

