<?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: convert SUM expression to Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/convert-SUM-expression-to-Set-Analysis/m-p/877945#M306533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is that vSelectedDate contains a text value and not a date. Possibly CALC_DATE also contains text values and not dates. See this blog post for some pointers: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Why don’t my dates work?&lt;/A&gt; And this document: &lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2015 05:32:20 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-06-12T05:32:20Z</dc:date>
    <item>
      <title>convert SUM expression to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/convert-SUM-expression-to-Set-Analysis/m-p/877944#M306532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to Qlikview and built a prototype for Expression calculation using formula SUM( if(CALC_DATE = &lt;EM&gt;vSelectedDate, &lt;/EM&gt;QTY, 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vSelectedDate is a variable of the format 6/10/2015 12:00:00 AM&lt;/P&gt;&lt;P&gt;CALC_DATE is a date with values in the same format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I convert the expression to =sum( {&amp;lt;CALC_DATE={$(vSelectedDate)}&amp;gt;} QTY) I get zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing any date conversion in the statement?&lt;/P&gt;&lt;P&gt;How would I use the same logic but only compare the date portion without the time component?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(.&lt;SPAN style="font-size: 13.3333330154419px;"&gt;{&amp;lt;date(CALC_DATE)={date($(vSelectedDate))}&amp;gt;} QTY) produces an expression error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I am using a Personal Edition version of Qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 22:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-SUM-expression-to-Set-Analysis/m-p/877944#M306532</guid>
      <dc:creator />
      <dc:date>2015-06-11T22:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: convert SUM expression to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/convert-SUM-expression-to-Set-Analysis/m-p/877945#M306533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is that vSelectedDate contains a text value and not a date. Possibly CALC_DATE also contains text values and not dates. See this blog post for some pointers: &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/02/19/why-don-t-my-dates-work" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Why don’t my dates work?&lt;/A&gt; And this document: &lt;A href="https://community.qlik.com/docs/DOC-3102"&gt;QlikView Date fields&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 05:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-SUM-expression-to-Set-Analysis/m-p/877945#M306533</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-12T05:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: convert SUM expression to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/convert-SUM-expression-to-Set-Analysis/m-p/877946#M306534</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;It seems to be date issue.First convert date in number format,use like this.&lt;/P&gt;&lt;P&gt;Floor(NUM(CALC_DATE)) AS CALC_DATE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 06:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-SUM-expression-to-Set-Analysis/m-p/877946#M306534</guid>
      <dc:creator>nlmmaurya</dc:creator>
      <dc:date>2015-06-12T06:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: convert SUM expression to Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/convert-SUM-expression-to-Set-Analysis/m-p/877947#M306535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert and Neelam. I was able to get to expected result using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;CALC_DATE={"=(date(CALC_DATE)=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;date($(vSelectedDate))&lt;/SPAN&gt;)"} &amp;gt;}&amp;nbsp; QTY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Set Analysis document by &lt;A href="https://community.qlik.com/people/FABRICE44"&gt;FABRICE44&lt;/A&gt; on Page 14 notes not to use the dimension when using in the condition statement. Seems to work for me at least for now. I am not sure how I would create a integer key KeyAutoNumber as stated in that document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 14:07:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-SUM-expression-to-Set-Analysis/m-p/877947#M306535</guid>
      <dc:creator />
      <dc:date>2015-06-17T14:07:52Z</dc:date>
    </item>
  </channel>
</rss>

