<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391730#M489463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the variable and so far it seems to work why would that make a difference can you explain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 12:34:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-29T12:34:32Z</dc:date>
    <item>
      <title>If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391724#M489457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a if statement that is to look at a number and if the number is above 15 to show the words delayed if it is under 15 or a negative value should display not delayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At present it is only displying not delayed for every result. going forward I want to be able to calculate the total amount of delayed and not delayed by day week month and year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have attahced a sample of my data where you can see the issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 11:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391724#M489457</guid>
      <dc:creator />
      <dc:date>2012-11-29T11:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391725#M489458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I should have put the if statement I am currently using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($(DELAYMINS)&amp;gt;0.010416666671517,'Delayed','Not Delayed')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 11:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391725#M489458</guid>
      <dc:creator />
      <dc:date>2012-11-29T11:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391726#M489459</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;PFA file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391726#M489459</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-11-29T12:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391727#M489460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im not able to open up files once you have resaved it as I am using the personal free edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please could you submit the changes on here and i will do them within Qlikview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391727#M489460</guid>
      <dc:creator />
      <dc:date>2012-11-29T12:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391728#M489461</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;Don't you think it's a problem related to the definition of you variable DELAYMINS ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you try DELAYMINS = Minute(Frac(SCH)-Frac(CHKS)) ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that will help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391728#M489461</guid>
      <dc:creator>jonathan_dau</dc:creator>
      <dc:date>2012-11-29T12:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391729#M489462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Minute(Frac(Sum(CHKS))-Frac(Sum(SCH))) &amp;gt;0.010416666671517,'Delayed','Not Delayed')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391729#M489462</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-11-29T12:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391730#M489463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the variable and so far it seems to work why would that make a difference can you explain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391730#M489463</guid>
      <dc:creator />
      <dc:date>2012-11-29T12:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391731#M489464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan this has worked correctly thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you explain why referring to the variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391731#M489464</guid>
      <dc:creator />
      <dc:date>2012-11-29T12:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391732#M489465</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;First I think your expression was not rightly writen :&lt;/P&gt;&lt;P&gt;Minute(Frac(Timestamp1)-Frac(Timestamp2)) --&amp;gt; Minute(Frac(Timesstamp1)-Frac(Timestamp2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And after I don't really see the point of puting SCH and CHKS into variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I just had a quick look and I'm not sure it works according to your needs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391732#M489465</guid>
      <dc:creator>jonathan_dau</dc:creator>
      <dc:date>2012-11-29T12:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391733#M489466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry after looking at a larger set of results it is not populating the correct output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391733#M489466</guid>
      <dc:creator />
      <dc:date>2012-11-29T12:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391734#M489468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial;"&gt;Hi you are correct it is not working properly i have took a screen shot The Delayed column uses the altered variable DELAYMINS and the delayed 2 column is using the expression given by Jagan.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial;"&gt;Adfjacent to the highlighted cell it should display delayed and a non highlighted cell should display not delayed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial;"&gt;&lt;IMG __jive_id="25807" class="jive-image-thumbnail jive-image" height="143" onclick="" alt="err.png" src="https://community.qlik.com/legacyfs/online/25807_err.png" style="height: 143px; width: 559.5652173913044px;" width="560" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391734#M489468</guid>
      <dc:creator />
      <dc:date>2012-11-29T12:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391735#M489470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try adding SCH and CHKS as dimensions.&amp;nbsp; I think this solves the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391735#M489470</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2012-11-29T12:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391736#M489471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks for your response i tried as per what you instructed but to no avail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 12:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391736#M489471</guid>
      <dc:creator />
      <dc:date>2012-11-29T12:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391737#M489472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added both as dimensions but it did not alter the output. I have reattached the file i am working with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: I am unable to load files I havent created as I am using the personal free edition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 13:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391737#M489472</guid>
      <dc:creator />
      <dc:date>2012-11-29T13:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391738#M489473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi is anyone able to provide any further tips as to why this if statement is not functioning properly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 08:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391738#M489473</guid>
      <dc:creator />
      <dc:date>2012-11-30T08:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391739#M489474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may be misunderstanding your requirement but it looks to me that you need some sort of aggregation in your expression (sum, avg, max etc) otherwise you will return null and the comparison will fail hence only one value is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why you are using the variable, but doesn't this work ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(avg(CHKS-SCH)&amp;gt;0.010416666671517,'Delayed','Not Delayed')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would probably use this instead though ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(avg(CHKS-SCH)*24*60&amp;gt;15,'Delayed','Not Delayed')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 09:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391739#M489474</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-11-30T09:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391740#M489475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tried the second formula and worked thanks so much flipside, and thank you as well to everyone that assisted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Nov 2012 09:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement/m-p/391740#M489475</guid>
      <dc:creator />
      <dc:date>2012-11-30T09:38:42Z</dc:date>
    </item>
  </channel>
</rss>

