<?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: Expression is returning incorrect results in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-is-returning-incorrect-results/m-p/550892#M555171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ellen, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any chance that you upload a small sample QVW application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Aug 2013 20:28:16 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-08-02T20:28:16Z</dc:date>
    <item>
      <title>Expression is returning incorrect results</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-is-returning-incorrect-results/m-p/550889#M555168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;I have been trying to make a chart that shows each person in the group's open tasks, and group them by how long they have been open.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;We know ia job is open becauase it doesnt have a completed date populated. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;We know when the job was created to calculate the length of time open with (from today). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;IMG __jive_id="44848" class="jive-image-thumbnail jive-image" onclick="" alt="Capture1.JPG" src="https://community.qlik.com/legacyfs/online/44848_Capture1.JPG" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Here is my Expression to identify open tasks:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;NumericCount (&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(((&lt;SPAN style="color: #800000;"&gt;ows_Task_x0020_Completed&lt;/SPAN&gt; = '') &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;ows_Task_x0020_Created&lt;/SPAN&gt; &amp;lt; &lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;())),&lt;SPAN style="color: #800000;"&gt;%Key_xml_98C49F546A18E856&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Here is my dimension to divide into more and less than 60 days groups:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;= &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;() - &lt;SPAN style="color: #800000;"&gt;ows_Task_x0020_Created &lt;/SPAN&gt; &amp;gt;=60), 'Past 60 days', 'Less than 60 days') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; Here is a shot of the data that should contribute to this graph, with Tasks with completed dates removed:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="44870" class="jive-image" alt="Capture2.JPG" src="https://community.qlik.com/legacyfs/online/44870_Capture2.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difficulty I am having is that the chart is clearly wrong. Brandon should have 3 tasks not 4, Colin should have 7 tasks not 9 (four of Colins open tasks should not show up becuase they are scheduled for after the report is ran, 8/1/13). PLease help me figure out what I did wrong here.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 20:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-is-returning-incorrect-results/m-p/550889#M555168</guid>
      <dc:creator />
      <dc:date>2013-08-01T20:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Expression is returning incorrect results</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-is-returning-incorrect-results/m-p/550890#M555169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe the key you count is not unique in this context? Try a DISTINCT qualifier in your count function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2013 20:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-is-returning-incorrect-results/m-p/550890#M555169</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-08-01T20:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression is returning incorrect results</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-is-returning-incorrect-results/m-p/550891#M555170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I tried a couple of things, and I keep getting the same result. I tried using the distinct option, but it didn't result in any changes. I also found a way to add the unique ID field from sharepoint to be certain I was counting a field with unique values, and pointed my count command at that. I am still getting the same incorrect result. Here's what I am currently working with for my expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Count &lt;SPAN style="font-size: 8pt;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ows_Task_x0020_Completed&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ows_Task_x0020_Created&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ows_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ellen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 18:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-is-returning-incorrect-results/m-p/550891#M555170</guid>
      <dc:creator />
      <dc:date>2013-08-02T18:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expression is returning incorrect results</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-is-returning-incorrect-results/m-p/550892#M555171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ellen, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any chance that you upload a small sample QVW application?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Aug 2013 20:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-is-returning-incorrect-results/m-p/550892#M555171</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-08-02T20:28:16Z</dc:date>
    </item>
  </channel>
</rss>

