<?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 Use of Functions in fields within Set Analysis Help needed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-of-Functions-in-fields-within-Set-Analysis-Help-needed/m-p/204365#M61306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;BR /&gt;&lt;BR /&gt;I have the following code used in an expression (which is working and syntactically correct):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;=sum({1 &amp;lt;res_date = {"&amp;gt;=01/01/2009 00:00:00 &amp;lt;=08/02/2010 00:00:00"},&lt;BR /&gt; check_date = {"&amp;gt;=01/05/2010 00:00:00 &amp;lt;=30/10/2010 00:00:00"}&lt;BR /&gt;&lt;BR /&gt; &amp;gt;}&lt;BR /&gt; Price)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What I would like instead, is to use the date and Toady function within the following, which is logically correct but has incorrect syntax off cource&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;=sum({1 &amp;lt;date(res_date) = {"&amp;gt;=01/01/2009 &amp;lt;=Today()"},&lt;BR /&gt; date(check_date) = {"&amp;gt;=01/05/2010 &amp;lt;=30/10/2010"}&lt;BR /&gt;&lt;BR /&gt; &amp;gt;}&lt;BR /&gt; Price)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone shed some light into using the above functions within the segment, or possible point to another relevant thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Feb 2011 22:27:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-07T22:27:39Z</dc:date>
    <item>
      <title>Use of Functions in fields within Set Analysis Help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Functions-in-fields-within-Set-Analysis-Help-needed/m-p/204365#M61306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;BR /&gt;&lt;BR /&gt;I have the following code used in an expression (which is working and syntactically correct):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;=sum({1 &amp;lt;res_date = {"&amp;gt;=01/01/2009 00:00:00 &amp;lt;=08/02/2010 00:00:00"},&lt;BR /&gt; check_date = {"&amp;gt;=01/05/2010 00:00:00 &amp;lt;=30/10/2010 00:00:00"}&lt;BR /&gt;&lt;BR /&gt; &amp;gt;}&lt;BR /&gt; Price)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What I would like instead, is to use the date and Toady function within the following, which is logically correct but has incorrect syntax off cource&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;=sum({1 &amp;lt;date(res_date) = {"&amp;gt;=01/01/2009 &amp;lt;=Today()"},&lt;BR /&gt; date(check_date) = {"&amp;gt;=01/05/2010 &amp;lt;=30/10/2010"}&lt;BR /&gt;&lt;BR /&gt; &amp;gt;}&lt;BR /&gt; Price)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone shed some light into using the above functions within the segment, or possible point to another relevant thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 22:27:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Functions-in-fields-within-Set-Analysis-Help-needed/m-p/204365#M61306</guid>
      <dc:creator />
      <dc:date>2011-02-07T22:27:39Z</dc:date>
    </item>
    <item>
      <title>Use of Functions in fields within Set Analysis Help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Functions-in-fields-within-Set-Analysis-Help-needed/m-p/204366#M61307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So res_date and check_date are actually timestamps? I'd personally call them res_timestamp and check_timestamp then, and create actual date fields for res_date and check_date. Then I'd do this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({1&amp;lt; res_date={"&amp;gt;=01/01/2009 &amp;lt;=$(=today())"}&lt;BR /&gt; ,check_date={"&amp;gt;=01/05/2010 &amp;lt;=30/10/2010"}&lt;BR /&gt; &amp;gt;} Price)&lt;/P&gt;&lt;P&gt;If you really don't want to make date fields, you can't quite do what you want. You can't use a function on the field. You can ONLY look for values for that field. So if it's a timestamp field, you have to match it up to timestamps.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({1&amp;lt; res_date={"&amp;gt;=01/01/2009 00:00:00 &amp;lt;=$(=timestamp(today()))"}&lt;BR /&gt; ,check_date={"&amp;gt;=01/05/2010 00:00:00 &amp;lt;=30/10/2010 00:00:00"}&lt;BR /&gt; &amp;gt;} Price)&lt;/P&gt;&lt;P&gt;That's also assuming your default format for timestamps is 'DD/MM/YYYY hh:mm:ss'. If not, you'd need to specify that format in the timestamp() function above. Same issue for today() if 'DD/MM/YYYY' is not your default date format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 02:35:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Functions-in-fields-within-Set-Analysis-Help-needed/m-p/204366#M61307</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-02-08T02:35:02Z</dc:date>
    </item>
    <item>
      <title>Use of Functions in fields within Set Analysis Help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Functions-in-fields-within-Set-Analysis-Help-needed/m-p/204367#M61308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My case is partially solved.&lt;/P&gt;&lt;P&gt;I restate the following: no function calls allowed where a field should be. Correct? Is this solvable another way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 16:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Functions-in-fields-within-Set-Analysis-Help-needed/m-p/204367#M61308</guid>
      <dc:creator />
      <dc:date>2011-02-08T16:15:26Z</dc:date>
    </item>
    <item>
      <title>Use of Functions in fields within Set Analysis Help needed</title>
      <link>https://community.qlik.com/t5/QlikView/Use-of-Functions-in-fields-within-Set-Analysis-Help-needed/m-p/204368#M61309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, no function calls where the field should be. So while there are probably a lot of possible solutions, I would expect any set analysis solution to take one of two basic forms:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;1) Applying the function during the load to create a new field to match the data in the set.&lt;BR /&gt;2) Applying the "opposite" function to the data in the set to match the existing field.&lt;/P&gt;&lt;P&gt;I gave examples of each. Not sure what you're asking for if not that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 20:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-of-Functions-in-fields-within-Set-Analysis-Help-needed/m-p/204368#M61309</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-02-08T20:40:45Z</dc:date>
    </item>
  </channel>
</rss>

