<?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 Calculation error need urgent help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-error-need-urgent-help/m-p/250159#M1193467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is load date being stored as a date or a character string? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially, I would say remove the leading zero on the dates and put 6/27/2010 in quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2011 18:58:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-01T18:58:36Z</dc:date>
    <item>
      <title>Calculation error need urgent help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-error-need-urgent-help/m-p/250157#M1193465</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;I now ran into this problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking in to past snapshots of data. We have a weekly refresh. My requirement is to find the count of all the items those were in Pending stage between this date range 05/24/2010 to 06/27/2010 has now( as of today) converted to 'Design In' or 'Design Win' Stage. DW_LOAD_DATE is the date field that is used &lt;/P&gt;&lt;P&gt;to store the snapshot every week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the screenshot of the table box where it correctly shows whats happening, but when I use the following syntax it yields zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(if(DW_LOAD_DATE&amp;gt;='05/24/2010' AND DW_LOAD_DATE&amp;lt;=06/27/2010 AND LINE_ITEM_STATUS='Pending', &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(U_LINE_ITEM_STATUS='Design In' or U_LINE_ITEM_STATUS='Design Win', OPP_ITEM)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me in finding where's the mistake is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also attached the excel file exported from the QV app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 18:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-error-need-urgent-help/m-p/250157#M1193465</guid>
      <dc:creator />
      <dc:date>2011-07-01T18:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation error need urgent help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-error-need-urgent-help/m-p/250158#M1193466</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;I found where's the mistake is but I need to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I hard code the date it works but when I use two variables for the min(DW_LOAD_DATE) and max(DW_LOAD_DATE) it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression with the variables looks like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(distinct {&amp;lt;DW_LOAD_DATE={"&amp;gt;=$(vConvStart)&amp;lt;=$(vConvEnd)"}, LINE_ITEM_STATUS={'Pending'}, U_LINE_ITEM_STATUS={'Design In', 'Design Win'}&amp;gt;} OPP_ITEM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where $(vConvStart)=min(DW_LOAD_DATE) and $(vConvEnd)=max(DW_LOAD_DATE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 18:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-error-need-urgent-help/m-p/250158#M1193466</guid>
      <dc:creator />
      <dc:date>2011-07-01T18:54:38Z</dc:date>
    </item>
    <item>
      <title>Calculation error need urgent help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-error-need-urgent-help/m-p/250159#M1193467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is load date being stored as a date or a character string? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially, I would say remove the leading zero on the dates and put 6/27/2010 in quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 18:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-error-need-urgent-help/m-p/250159#M1193467</guid>
      <dc:creator />
      <dc:date>2011-07-01T18:58:36Z</dc:date>
    </item>
    <item>
      <title>Calculation error need urgent help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-error-need-urgent-help/m-p/250160#M1193468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alang, Thanks for your response.&lt;/P&gt;&lt;P&gt;I recently discovered that its the set analysis expression which is actually not calculating the results correctly.&lt;/P&gt;&lt;P&gt;When I hard code, even with the leading zero it works fine. And Load Date is stored as date.&lt;/P&gt;&lt;P&gt;I need help in writing the correct expression for this set analysis expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(distinct {&amp;lt;DW_LOAD_DATE={"&amp;gt;=$(vConvStart)&amp;lt;=$(vConvEnd)"}, LINE_ITEM_STATUS={'Pending'}, U_LINE_ITEM_STATUS={'Design In', 'Design Win'}&amp;gt;} OPP_ITEM).&lt;/P&gt;&lt;P&gt;Instead if i write this it perfectly works,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(distinct {&amp;lt;DW_LOAD_DATE={"&amp;gt;=05/24/2010&amp;lt;=06/27/2010"}, LINE_ITEM_STATUS={'Pending'}, U_LINE_ITEM_STATUS={'Design In', 'Design Win'}&amp;gt;} OPP_ITEM)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where $(vConvStart)=min(DW_LOAD_DATE) and $(vConvEnd)=max(DW_LOAD_DATE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt;"&gt;NB*- &lt;/P&gt;&lt;P&gt;where $(vConvStart)=min(DW_LOAD_DATE) and $(vConvEnd)=max(DW_LOAD_DATE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason its not working. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2011 19:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-error-need-urgent-help/m-p/250160#M1193468</guid>
      <dc:creator />
      <dc:date>2011-07-01T19:33:03Z</dc:date>
    </item>
  </channel>
</rss>

