<?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: Computing for Days Delayed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422303#M565488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;up!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Mar 2013 01:38:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-08T01:38:31Z</dc:date>
    <item>
      <title>Computing for Days Delayed</title>
      <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422297#M565482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to compute for the days delayed in my file. The problem is, the date that I have to compute is only located in 1 field.&lt;/P&gt;&lt;P&gt;Please see attached file!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Donna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************[UPDATE]****************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Since we can now compute the days delayed (answer provided by Flipside).. I have a situation which I have to input in an input box,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;ex: Days Delayed [input box]: 3, if I input a number, it will only display the days delayed which is equal to 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Thanks a bunch!&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;-Dona&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 02:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422297#M565482</guid>
      <dc:creator />
      <dc:date>2013-01-15T02:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Computing for Days Delayed</title>
      <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422298#M565483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Donna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I've understood correctly, I think this is what you can do in an expression ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(left(no#,1)='b',date-aggr(min(total &amp;lt;id&amp;gt; date), id, no#))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. however wouldn't it be easier to associate the dates in script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming you only have 2 dates (a &amp;amp; b).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 09:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422298#M565483</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-01-15T09:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Computing for Days Delayed</title>
      <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422299#M565484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;worked like a charm!&lt;/P&gt;&lt;P&gt;thank you flipside!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it gave me an idea &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 03:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422299#M565484</guid>
      <dc:creator />
      <dc:date>2013-01-16T03:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Computing for Days Delayed</title>
      <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422300#M565485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi flipside!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a question regarding this one!&lt;/P&gt;&lt;P&gt;Since we can now compute the days delayed.. I have a situation which I have to input in an input box,&lt;/P&gt;&lt;P&gt;ex: Days Delayed [input box]: 3, if I input a number, it will only display the days delayed which is equal to 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this possible? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a bunch!&lt;/P&gt;&lt;P&gt;-Dona&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 03:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422300#M565485</guid>
      <dc:creator />
      <dc:date>2013-03-07T03:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Computing for Days Delayed</title>
      <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422301#M565486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;b.u.m.p~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 08:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422301#M565486</guid>
      <dc:creator />
      <dc:date>2013-03-07T08:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Computing for Days Delayed</title>
      <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422302#M565487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have no other expressions, then you could amend the formula as ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(&amp;nbsp; &lt;/STRONG&gt;if(left(no#,1)='b',date-aggr(min(total &amp;lt;id&amp;gt; date), id, no#))&lt;STRONG&gt;&amp;nbsp; =daysDelayed,daysDelayed+.001)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... I have added 0.001 to the value and set the number presentation to integer to force zeroes to show if you need them to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have to have other expressions, then the only way might be to set the background colour in the expression to highlight the matching values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: Where daysDelayed is the variable linked to your input box! Should have made that clear!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 09:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422302#M565487</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-03-07T09:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Computing for Days Delayed</title>
      <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422303#M565488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;up!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 01:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422303#M565488</guid>
      <dc:creator />
      <dc:date>2013-03-08T01:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Computing for Days Delayed</title>
      <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422304#M565489</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;Thanks for the reply! is it possible that if I input something on the input box, it will only show the items that the value of days delayed inputted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: if I input days delayed : 2&lt;/P&gt;&lt;P&gt;then it will only show all the days delayed for 2 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 01:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422304#M565489</guid>
      <dc:creator />
      <dc:date>2013-03-08T01:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Computing for Days Delayed</title>
      <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422305#M565490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My earlier reply should give you that - does it not work for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(&lt;/STRONG&gt;&lt;EM&gt;if(left(no#,1)='b',date-aggr(min(total &amp;lt;id&amp;gt; date), id, no#))&lt;/EM&gt;&lt;STRONG&gt;=daysDelayed,daysDelayed+.001)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... the original formula (in italics) is used inside another if statement (the bold part) and it just checks if the formula equals the inputted value (I'm using daysDelayed as my variable name). If there is a match then return the formula (I added 0.001 to force zeroes to show) else do nothing - ie. return Null().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the ONLY expression, then the table should reduce to only those valid rows, but if other expressions are in effect then THIS expression may show as a Null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 09:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422305#M565490</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2013-03-08T09:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Computing for Days Delayed</title>
      <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422306#M565491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works. alright, i'll get back to you as soon as I get back on that expression. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Mar 2013 07:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422306#M565491</guid>
      <dc:creator />
      <dc:date>2013-03-10T07:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Computing for Days Delayed</title>
      <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422307#M565492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks flipside! it works! now my only problem is to show also the date it was shipped. are there possible ways to show it on the dimension without getting the 'error in calculation'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Mar 2013 01:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422307#M565492</guid>
      <dc:creator />
      <dc:date>2013-03-11T01:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Computing for Days Delayed</title>
      <link>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422308#M565493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;up~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 01:58:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Computing-for-Days-Delayed/m-p/422308#M565493</guid>
      <dc:creator />
      <dc:date>2013-03-14T01:58:48Z</dc:date>
    </item>
  </channel>
</rss>

