<?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: Highlight the row of the last payment in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Highlight-the-row-of-the-last-payment/m-p/262174#M98740</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;If this code returns the correct day (adapt fieldnames as required):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Max({&amp;lt;Month = {'$(=Max(Month))'}&amp;gt;} If(Aggr(Count(Payments), DayOfMonth, Month) &amp;gt; 0, DayOfMonth))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this condition in the Text Format option for each expression (click the + next to the expression to see the options):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(﻿﻿﻿﻿﻿Max....)) = DayOfMonth, '&amp;lt;B&amp;gt;')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in the Text Color option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(Max...)) = DayOfMonth, Red())&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2011 08:14:20 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2011-10-20T08:14:20Z</dc:date>
    <item>
      <title>Highlight the row of the last payment</title>
      <link>https://community.qlik.com/t5/QlikView/Highlight-the-row-of-the-last-payment/m-p/262173#M98739</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 am using a straight table which has "day of month" as my dimension and 6 expressions for the payments in the last 6 months (i.e. there is an expression for each of the months). I need to highlight the row where the last payment was received for the current month. In other words, if the last payment was received on the 13th, then this entire row must be highlighted accross all the months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 07:52:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highlight-the-row-of-the-last-payment/m-p/262173#M98739</guid>
      <dc:creator />
      <dc:date>2011-10-20T07:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight the row of the last payment</title>
      <link>https://community.qlik.com/t5/QlikView/Highlight-the-row-of-the-last-payment/m-p/262174#M98740</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;If this code returns the correct day (adapt fieldnames as required):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Max({&amp;lt;Month = {'$(=Max(Month))'}&amp;gt;} If(Aggr(Count(Payments), DayOfMonth, Month) &amp;gt; 0, DayOfMonth))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this condition in the Text Format option for each expression (click the + next to the expression to see the options):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(﻿﻿﻿﻿﻿Max....)) = DayOfMonth, '&amp;lt;B&amp;gt;')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in the Text Color option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(Max...)) = DayOfMonth, Red())&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 08:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highlight-the-row-of-the-last-payment/m-p/262174#M98740</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-10-20T08:14:20Z</dc:date>
    </item>
    <item>
      <title>Highlight the row of the last payment</title>
      <link>https://community.qlik.com/t5/QlikView/Highlight-the-row-of-the-last-payment/m-p/262175#M98741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for the quick reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried it but can't get it right. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have: &lt;/P&gt;&lt;P&gt;Dimension: Day Of Month, &lt;/P&gt;&lt;P&gt;Current month expression: sum&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[OverallMonth (Cal)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vMaxSelectOverallMonthCalCurrent&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Pmt Value]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I editted what you gave me and came up with: &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Max&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[OverallMonth (Cal)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vMaxSelectOverallMonthCalCurrent&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Pmt Value]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) = {'$(=Max(sum(if([OverallMonth (Cal)] = vMaxSelectOverallMonthCalCurrent, [Pmt Value]))))'}&amp;gt;} If(Aggr(Count(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Pmt Value]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), Day Of Month, sum(if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[OverallMonth (Cal)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = vMaxSelectOverallMonthCalCurrent, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Pmt Value]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &amp;gt; 0, Day Of Month)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added this as an expression to see what the result was but get none. Where have I gone wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 09:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highlight-the-row-of-the-last-payment/m-p/262175#M98741</guid>
      <dc:creator />
      <dc:date>2011-10-20T09:00:12Z</dc:date>
    </item>
    <item>
      <title>Highlight the row of the last payment</title>
      <link>https://community.qlik.com/t5/QlikView/Highlight-the-row-of-the-last-payment/m-p/262176#M98742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I managed to do it in a slightly different way but you pushed me in the right direction.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 13:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Highlight-the-row-of-the-last-payment/m-p/262176#M98742</guid>
      <dc:creator />
      <dc:date>2011-10-20T13:26:18Z</dc:date>
    </item>
  </channel>
</rss>

