<?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 If then conditional in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-then-conditional/m-p/1286302#M860714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem concerning conditional formatting.&lt;/P&gt;&lt;P&gt;I have two charts, one "overview" and one "detail" (see below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="150233" alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/150233_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem is the second table with the "oldest" invoice. I only want to see to oldest invoice of outstanding amounts (1/1/2015), not the oldest invoice of that customer in total (1/1/2013).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I could fix this with:&lt;/P&gt;&lt;P&gt;=if(sum({&amp;lt;Year=,Month=&amp;gt;} OutstandingAmount)&amp;lt;&amp;gt;0, min({$&amp;lt;Year=,Month=,Paid={'No'}&amp;gt;}Invoicedate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this does not work. I understand why. He thinks "idd, this customer has got an oustanding amount, so OutstandingAmount &amp;lt;&amp;gt; 0, I will now look at the oldest invoice date of this customer".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I tell Qlikview to only look at the dates of the &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;outstanding invoices and show me the oldest one of those&lt;/STRONG&gt;&lt;/SPAN&gt;? Is that with an AND expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me?&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>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>If then conditional</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-conditional/m-p/1286302#M860714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem concerning conditional formatting.&lt;/P&gt;&lt;P&gt;I have two charts, one "overview" and one "detail" (see below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="150233" alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/150233_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem is the second table with the "oldest" invoice. I only want to see to oldest invoice of outstanding amounts (1/1/2015), not the oldest invoice of that customer in total (1/1/2013).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I could fix this with:&lt;/P&gt;&lt;P&gt;=if(sum({&amp;lt;Year=,Month=&amp;gt;} OutstandingAmount)&amp;lt;&amp;gt;0, min({$&amp;lt;Year=,Month=,Paid={'No'}&amp;gt;}Invoicedate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this does not work. I understand why. He thinks "idd, this customer has got an oustanding amount, so OutstandingAmount &amp;lt;&amp;gt; 0, I will now look at the oldest invoice date of this customer".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I tell Qlikview to only look at the dates of the &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;outstanding invoices and show me the oldest one of those&lt;/STRONG&gt;&lt;/SPAN&gt;? Is that with an AND expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help me?&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>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-conditional/m-p/1286302#M860714</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: If then conditional</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-conditional/m-p/1286303#M860715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Min(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;Year=,Month=&amp;gt;}&lt;/SPAN&gt;Aggr(If(S&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;um({&amp;lt;Year=,Month=&amp;gt;} OutstandingAmount) &amp;lt;&amp;gt; 0, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Invoicedate&lt;/SPAN&gt;), customer, [invoice no], [invoice date]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 11:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-conditional/m-p/1286303#M860715</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-20T11:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: If then conditional</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-conditional/m-p/1286304#M860716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I have to add all the dimension names between squared brackets? Is that what you did with [invoice no] and [invoice date]?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I gave you a simplified table, I have more expressions and dimensions)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 12:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-conditional/m-p/1286304#M860716</guid>
      <dc:creator />
      <dc:date>2017-01-20T12:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: If then conditional</title>
      <link>https://community.qlik.com/t5/QlikView/If-then-conditional/m-p/1286305#M860717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 13:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-then-conditional/m-p/1286305#M860717</guid>
      <dc:creator />
      <dc:date>2017-01-20T13:39:30Z</dc:date>
    </item>
  </channel>
</rss>

