<?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 Condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162588#M378854</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 guess u misread the question. Attaching the sample file so that you can see how i need the output to be.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Two columns are mentioned that is End Date and &lt;/SPAN&gt;Revenue&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; due date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If the &lt;/SPAN&gt;revenue&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; due date column is null then &lt;/SPAN&gt;update&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; that null value as End date+7. How to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; INPUT&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 182px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="73"&gt;End Date&lt;/TD&gt;&lt;TD width="109"&gt;Report due date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;6/29/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;7/6/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;5/19/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;5/26/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;7/13/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;7/16/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;5/10/2016&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;7/13/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;7/16/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT SHOULD BE AS BELOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 176px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="68"&gt;End Date&lt;/TD&gt;&lt;TD width="108"&gt;Report due date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;6/29/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;7/6/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;5/19/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;5/26/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;7/13/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;7/16/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;5/10/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;5/17/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;7/13/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;7/16/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Aug 2016 08:04:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-10T08:04:42Z</dc:date>
    <item>
      <title>If Condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162586#M378852</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 scenario here, where there are 2 columns by name End Date and Report Due Date. If the Report Due Date is Null, then I need to 7 days to the End Date column and replace the value in the Report Due Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me in this regard?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avinash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 07:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162586#M378852</guid>
      <dc:creator />
      <dc:date>2016-08-10T07:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: If Condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162587#M378853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need to subtract or add? May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [End Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;Date(Alt([Report Due Date], [End Date] + 7))&lt;/SPAN&gt; as [Report Due Date]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assumed End Date + 7 days, but if it is subtract, then do End Date - 7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 07:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162587#M378853</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-10T07:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: If Condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162588#M378854</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 guess u misread the question. Attaching the sample file so that you can see how i need the output to be.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Two columns are mentioned that is End Date and &lt;/SPAN&gt;Revenue&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; due date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;If the &lt;/SPAN&gt;revenue&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; due date column is null then &lt;/SPAN&gt;update&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; that null value as End date+7. How to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; INPUT&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 182px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="73"&gt;End Date&lt;/TD&gt;&lt;TD width="109"&gt;Report due date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;6/29/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;7/6/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;5/19/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;5/26/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;7/13/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;7/16/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;5/10/2016&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;7/13/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;7/16/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUTPUT SHOULD BE AS BELOW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 176px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="68"&gt;End Date&lt;/TD&gt;&lt;TD width="108"&gt;Report due date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;6/29/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;7/6/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;5/19/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;5/26/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;7/13/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;7/16/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;5/10/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;5/17/2016&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;7/13/2016&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;7/16/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 08:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162588#M378854</guid>
      <dc:creator />
      <dc:date>2016-08-10T08:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: If Condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162589#M378855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I did not miss read it... If Report due date is truly null, this should work,&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Date(Alt([Report Due Date], [End Date] + 7))&lt;/SPAN&gt; as [Report Due Date]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is white space, you can try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(If(Len(Trim([Report Due Date])) &amp;gt; 0, [Report Due Date], [End Date] + 7)) as [Report Due Date]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 08:08:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162589#M378855</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-10T08:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: If Condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162590#M378856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD [End Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(Alt([Report due date], [End Date] + 7)) as [Report due date];&lt;/P&gt;&lt;P&gt;LOAD [End Date],&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; If(Len(Trim([Report due date])) &amp;gt; 0, [Report due date]) as [Report due date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;End Date, Report due date&lt;/P&gt;&lt;P&gt;6/29/2016, 7/6/2016&lt;/P&gt;&lt;P&gt;5/19/2016, 5/26/2016&lt;/P&gt;&lt;P&gt;7/13/2016, 7/16/2016&lt;/P&gt;&lt;P&gt;5/10/2016,&lt;/P&gt;&lt;P&gt;7/13/2016, 7/16/2016&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to carry out the red line because inline table created a white space instead of true null for the 4th row. If you know that your date contains null, you won't need to use that and can move to the next load directly. Else you can just use the other alternative (Len(Trim()) &amp;gt; 0....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output in table viewer&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134166_Capture.PNG" style="height: 378px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 08:13:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162590#M378856</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-10T08:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: If Condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162591#M378857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks sunny. This worked for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 08:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162591#M378857</guid>
      <dc:creator />
      <dc:date>2016-08-10T08:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: If Condition</title>
      <link>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162592#M378858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, I am glad it finally worked. Please consider closing this thread down by marking correct answer if you got what you were looking for.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 08:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Condition/m-p/1162592#M378858</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-10T08:43:07Z</dc:date>
    </item>
  </channel>
</rss>

