<?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: Easy Sum with Variable Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Easy-Sum-with-Variable-Question/m-p/382700#M1166980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Aug 2012 21:02:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-31T21:02:56Z</dc:date>
    <item>
      <title>Easy Sum with Variable Question</title>
      <link>https://community.qlik.com/t5/QlikView/Easy-Sum-with-Variable-Question/m-p/382696#M1166976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As part of this trying to convert an end user entered Date (on a calendar element) inside the expression, in a normal "If" statement it works fine as Date(vDateEntered) to converts successfully from number to date format.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample:&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum(If(SalesDate=Date(vDateEntered), Sales)) works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But converting this example to set analysis isn't converting to date mm/dd/yyyy format correctly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;SalesDate={'=Date$(vDateEntered)}&amp;gt;} Sales)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(just summing up sales for whatever date a person picked)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me the right syntax for this?&amp;nbsp;&amp;nbsp; Thanks much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 22:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Easy-Sum-with-Variable-Question/m-p/382696#M1166976</guid>
      <dc:creator />
      <dc:date>2012-08-30T22:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Easy Sum with Variable Question</title>
      <link>https://community.qlik.com/t5/QlikView/Easy-Sum-with-Variable-Question/m-p/382697#M1166977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=sum({&amp;lt;SalesDate={"$(=Date(vDateEntered))"}&amp;gt;} Sales) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran Rokkam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 04:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Easy-Sum-with-Variable-Question/m-p/382697#M1166977</guid>
      <dc:creator />
      <dc:date>2012-08-31T04:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Easy Sum with Variable Question</title>
      <link>https://community.qlik.com/t5/QlikView/Easy-Sum-with-Variable-Question/m-p/382698#M1166978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats perfect, one new issue, SalesDate is stored in the format 1/31/2011 12:00:00 AM, so i need to use Date(SalesDate) to convert it to 1/31/2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i get that SalesDate conversion into your syntax?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 14:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Easy-Sum-with-Variable-Question/m-p/382698#M1166978</guid>
      <dc:creator />
      <dc:date>2012-08-31T14:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Easy Sum with Variable Question</title>
      <link>https://community.qlik.com/t5/QlikView/Easy-Sum-with-Variable-Question/m-p/382699#M1166979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis can be applied only on the field and hence its essencial to apply the format of the conditional expression to be same as the the field format. You can modify the expression to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;SalesDate={"=TimeStamp$(vDateEntered)"}&amp;gt;} Sales) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it not works try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;SalesDate={"=Text(TimeStamp$(vDateEntered))"}&amp;gt;} Sales) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idea is to match expression return type to the field format. Try around with the expression and nplay around with the formats to match the return to the field. You can check the return by tryin the set expression in a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran Rokkam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 16:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Easy-Sum-with-Variable-Question/m-p/382699#M1166979</guid>
      <dc:creator />
      <dc:date>2012-08-31T16:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Easy Sum with Variable Question</title>
      <link>https://community.qlik.com/t5/QlikView/Easy-Sum-with-Variable-Question/m-p/382700#M1166980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 21:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Easy-Sum-with-Variable-Question/m-p/382700#M1166980</guid>
      <dc:creator />
      <dc:date>2012-08-31T21:02:56Z</dc:date>
    </item>
  </channel>
</rss>

