<?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: If Statement using Dates in Chart Caption Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement-using-Dates-in-Chart-Caption-Expression/m-p/835091#M293769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the second equal sign needs to be removed from the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;='Year over Year Net Shipped Sales through '&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #808080;"&gt;vMaxShipDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt; = (&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;()),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #808080;"&gt;vMaxShipDateYesterday&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;, 'MMM DD, YYYY'),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #808080;"&gt;vMaxShipDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;, 'MMM DD, YYYY'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 23:34:18 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-06-16T23:34:18Z</dc:date>
    <item>
      <title>If Statement using Dates in Chart Caption Expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-using-Dates-in-Chart-Caption-Expression/m-p/835090#M293768</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 trying to use the expression below to automate the "YTD through" date in a chart caption. I need to test for transaction records that slip in after midnight and before our nightly data refresh completes at like 4am (so MaxShipDate becomes today versus yesterday) and if found, use the "Yesterday" MaxShipDate variable versus the regular MaxShipDate variable. A similar If statement is working correctly in my expressions to pull year over year sales totals. My chart caption reads "Error:Error in expression:"&amp;nbsp; Any ideas?&amp;nbsp; Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;='Year over Year Net Shipped Sales through '&amp;amp; (=&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vMaxShipDate&lt;/EM&gt;&lt;/STRONG&gt; = (&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;()),&lt;SPAN style="color: #0000ff;"&gt;DATE&lt;/SPAN&gt;(&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vMaxShipDateYesterday&lt;/EM&gt;&lt;/STRONG&gt;, 'MMM DD, YYYY'),&lt;SPAN style="color: #0000ff;"&gt;DATE&lt;/SPAN&gt;(&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vMaxShipDate&lt;/EM&gt;&lt;/STRONG&gt;, 'MMM DD, YYYY'))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;In case it's helpful, this is the chart in question. The Demand version works because we always have a few Today records and can just use the Yesterday variable. With Shipped, it's a day to day coin toss. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89638_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 17:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-using-Dates-in-Chart-Caption-Expression/m-p/835090#M293768</guid>
      <dc:creator />
      <dc:date>2015-06-16T17:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement using Dates in Chart Caption Expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-using-Dates-in-Chart-Caption-Expression/m-p/835091#M293769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the second equal sign needs to be removed from the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;='Year over Year Net Shipped Sales through '&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #808080;"&gt;vMaxShipDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt; = (&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;()),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #808080;"&gt;vMaxShipDateYesterday&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;, 'MMM DD, YYYY'),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333320617676px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #808080;"&gt;vMaxShipDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;, 'MMM DD, YYYY'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 23:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-using-Dates-in-Chart-Caption-Expression/m-p/835091#M293769</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-16T23:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement using Dates in Chart Caption Expression</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-using-Dates-in-Chart-Caption-Expression/m-p/835092#M293770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to do some more extensive testing, but this appears to work exactly as expected. Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 22:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-using-Dates-in-Chart-Caption-Expression/m-p/835092#M293770</guid>
      <dc:creator />
      <dc:date>2015-06-18T22:24:27Z</dc:date>
    </item>
  </channel>
</rss>

