<?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 problem with a revised expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-a-revised-expression/m-p/1125492#M370487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count(if(aggr(only(dateQA - dateCT), Pat_ID1) &amp;lt;= (LengthDays*7/5),1))&lt;/P&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;the above expression works but ...&lt;/P&gt;&lt;P&gt;I want to improve it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;ADDRESS&gt;a.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using NetWorkDays(dateQA,dateCT) instead of (dateQA - dateCT)&amp;nbsp; &lt;STRONG&gt;This could be giving me a problem because it is giving a "fraction" of a date?? ...&lt;/STRONG&gt;&lt;/ADDRESS&gt;&lt;P&gt;LengthDays*7/5 was an attempt to allow for weekends but with NetWorkDays - the 7/5 compromise will not be needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I then I start getting errors ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I am trying to say is:&lt;/P&gt;&lt;P&gt;a particular Pat_ID1 has x number of days between dateQA and date CT&lt;/P&gt;&lt;P&gt;if this x number of days is less than or equal to a specified LengthDays then give them a count of 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2016 02:12:49 GMT</pubDate>
    <dc:creator>josephinetedesc</dc:creator>
    <dc:date>2016-06-28T02:12:49Z</dc:date>
    <item>
      <title>problem with a revised expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-revised-expression/m-p/1125492#M370487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;count(if(aggr(only(dateQA - dateCT), Pat_ID1) &amp;lt;= (LengthDays*7/5),1))&lt;/P&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;the above expression works but ...&lt;/P&gt;&lt;P&gt;I want to improve it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;ADDRESS&gt;a.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using NetWorkDays(dateQA,dateCT) instead of (dateQA - dateCT)&amp;nbsp; &lt;STRONG&gt;This could be giving me a problem because it is giving a "fraction" of a date?? ...&lt;/STRONG&gt;&lt;/ADDRESS&gt;&lt;P&gt;LengthDays*7/5 was an attempt to allow for weekends but with NetWorkDays - the 7/5 compromise will not be needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I then I start getting errors ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what I am trying to say is:&lt;/P&gt;&lt;P&gt;a particular Pat_ID1 has x number of days between dateQA and date CT&lt;/P&gt;&lt;P&gt;if this x number of days is less than or equal to a specified LengthDays then give them a count of 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 02:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-revised-expression/m-p/1125492#M370487</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-06-28T02:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a revised expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-revised-expression/m-p/1125493#M370488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried with 'floor' function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&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: 13px;"&gt;Networkdays(floor(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dateQA),floor(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dateCT))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2016 02:43:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-revised-expression/m-p/1125493#M370488</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-06-28T02:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a revised expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-revised-expression/m-p/1125494#M370489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found out what I have been doing wrong!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference in the first and second image is that the second image had as an expression '1'&amp;nbsp; - this was because I wanted all rows to show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I could solve the problem (without the expression "1") - by ensuring that the "Suppress zero-values" was unchecked!&amp;nbsp; I now need to check how negative values are shown.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/129555_Capture1.JPG" style="height: 319px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 13:06:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-revised-expression/m-p/1125494#M370489</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-06-29T13:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a revised expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-revised-expression/m-p/1125495#M370490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the difference between 2 dates is negative -the function NetWorkDays() gives 0 .. How am I able to keep the 0 value in rowNum3, but not the 0 in rowNum6?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/129556_Capture1.JPG" style="height: 100px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 13:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-revised-expression/m-p/1125495#M370490</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-06-29T13:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem with a revised expression</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-revised-expression/m-p/1125496#M370491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you got resolved?, if not, try like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;dateCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;dateQA&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;dateCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;dateQA&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;NetWorkDays&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;dateQA&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;dateCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 17:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-revised-expression/m-p/1125496#M370491</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2016-06-29T17:07:29Z</dc:date>
    </item>
  </channel>
</rss>

