<?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: How to create the date expression in Nprinting 17 Conditions in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-create-the-date-expression-in-Nprinting-17-Conditions/m-p/134638#M4777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;May be use like this:&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=text(date( today()-3 , 'MM/DD/YYYY'))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;or&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=text(date( today()-3 , "M/DD/YYYY"))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2018 15:21:58 GMT</pubDate>
    <dc:creator>BalaBhaskar_Qlik</dc:creator>
    <dc:date>2018-07-27T15:21:58Z</dc:date>
    <item>
      <title>How to create the date expression in Nprinting 17 Conditions</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-create-the-date-expression-in-Nprinting-17-Conditions/m-p/134637#M4776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Nprinting 17 for reporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a variable in my report. &lt;/P&gt;&lt;P&gt;vDateToApply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will get the yesterday's date on daily refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes , the refresh won't happen because of db refresh issue. So, this variable will not get the latest Yesterday's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check that, I am creating nprinting report to show the vDateToApply value to Admin by sending the mail from NPrinting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the Admin don't need this mail on successful refresh. Whenever this date don't have the latest "Yesterday's date", they should get the mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this, i created one condition in Nprinting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vDateToApply=07/24/2018&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I given the expression as below but it is showing false. Please tell me the right way of writing the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Conditions.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/209080_Conditions.PNG" style="height: 243px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 13:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-create-the-date-expression-in-Nprinting-17-Conditions/m-p/134637#M4776</guid>
      <dc:creator>konidena</dc:creator>
      <dc:date>2018-07-27T13:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the date expression in Nprinting 17 Conditions</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-create-the-date-expression-in-Nprinting-17-Conditions/m-p/134638#M4777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;May be use like this:&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=text(date( today()-3 , 'MM/DD/YYYY'))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;or&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=text(date( today()-3 , "M/DD/YYYY"))&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 15:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-create-the-date-expression-in-Nprinting-17-Conditions/m-p/134638#M4777</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-07-27T15:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create the date expression in Nprinting 17 Conditions</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/How-to-create-the-date-expression-in-Nprinting-17-Conditions/m-p/134639#M4778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As always there 2 sides of equation. So you have your variable and your expression. &lt;/P&gt;&lt;P&gt;I agree with Bala that it is important to bring both sides of equation to the same data type - in your case it is likely to be text, but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are 2 things you can do to check why it is not working&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;check how NPrinitng is understanding your variable by exposing it in a temporary report (for example by adding it to excel template and previewing it)&lt;/LI&gt;&lt;LI&gt;It might be that your variable is not evaluating and therefore is not returning value (or rather returning Null())&lt;/LI&gt;&lt;LI&gt;The last thing you might do is to convert your variable value to number by applying floor function on your variable value definition. This will remove any text/date format issues as well as potential timestamp/decimal part issue&lt;UL&gt;&lt;LI&gt;keep in mind that the floor function should be applied when defining variable as well as in your expression in NPrinitng =Floor(&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;today()-3 )&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;hope this helps&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;cheers&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Lech&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 06:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/How-to-create-the-date-expression-in-Nprinting-17-Conditions/m-p/134639#M4778</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2018-07-30T06:50:24Z</dc:date>
    </item>
  </channel>
</rss>

