<?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: Strings within Strings in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449378#M433978</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be working (with some changes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Your variable date range included all the observations... so in order to test the set analysis, I changed the vFronDate to 2013-04-01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Used SET DateFormat='YYYY-MM-DD'; in the environmental variable to make sure your SalesDate field is read as a date field by QlikView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;SET DateFormat='YYYY-MM-DD';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country, Value, SalesDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 12, 2013-01-04&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 14.5, 2013-02-07&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 6.6, 2013-03-03&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 4.5, 2013-04-11&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 7.8, 2013-05-19&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 9.4, 2013-06-22&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UK, 11.3, 2013-01-31&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UK, 10.1, 2013-02-01&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UK, 3.2, 2013-03-21&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UK, 5.6, 2013-04-15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UK, 3.9, 2013-05-12&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UK, 6.9, 2013-06-06&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vFromDate=Floor(Date#('&lt;SPAN style="color: #ff0000;"&gt;2013-04-01&lt;/SPAN&gt;', 'YYYY-MM-DD'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vToDate=Floor(Date#('2013-06-30', 'YYYY-MM-DD'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;SalesDate={"&amp;gt;=$(=Date(vFromDate, 'YYYY-MM-DD'))&amp;lt;=$(=Date(vToDate, 'YYYY-MM-DD'))"}&amp;gt;} Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174420_Capture.PNG" style="height: 180px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2017 15:21:57 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-08-23T15:21:57Z</dc:date>
    <item>
      <title>Strings within Strings in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449372#M433972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am solving examples from the "QlikView for Developers Cookbook" and stuck at an example using set Analysis to define the selected date range, as the provided Syntax seems to be incorrect:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;SalesDate={'&amp;gt;=$(=Date(vFromDate, 'YYYY-MM-DD'))&amp;lt;=$(=Date(vToDate, 'YYYY-MM-DD'))'}&amp;gt;} Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One cannot use multiple ' ' within an Expression, afaik, but I don't know how to solve this Situation... using " " for the outter and ' ' for the inner strings does not work either ... you guys have any ideas? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 07:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449372#M433972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-23T07:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Strings within Strings in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449373#M433973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Mahdi Jafari wrote:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;.. " " for the outter and ' ' for the inner strings does not work either ..&lt;/SPAN&gt;&lt;SPAN class="emoticon-inline emoticon_sad" style="height: 16px; width: 16px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;that should actually work. Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({$&amp;lt;SalesDate={&lt;STRONG style="color: #ff0000;"&gt;"&lt;/STRONG&gt;&amp;gt;=$(=Date(vFromDate, 'YYYY-MM-DD')) &amp;lt;=$(=Date(vToDate, 'YYYY-MM-DD'))&lt;STRONG style="color: #ff0000;"&gt;"&lt;/STRONG&gt;}&amp;gt;} Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 09:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449373#M433973</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-08-23T09:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Strings within Strings in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449374#M433974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree, but I can't get it to work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyways &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449374#M433974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-23T11:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Strings within Strings in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449375#M433975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What are the variables and how you declare?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449375#M433975</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-08-23T11:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Strings within Strings in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449376#M433976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, have you made sure that your SalesDate field is in this format -&amp;gt; YYYY-MM-DD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 11:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449376#M433976</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-23T11:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Strings within Strings in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449377#M433977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the whole script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Country, Value, SalesDate&lt;BR /&gt; USA, 12, 2013-01-04&lt;BR /&gt; USA, 14.5, 2013-02-07&lt;BR /&gt; USA, 6.6, 2013-03-03&lt;BR /&gt; USA, 4.5, 2013-04-11&lt;BR /&gt; USA, 7.8, 2013-05-19&lt;BR /&gt; USA, 9.4, 2013-06-22&lt;BR /&gt; UK, 11.3, 2013-01-31&lt;BR /&gt; UK, 10.1, 2013-02-01&lt;BR /&gt; UK, 3.2, 2013-03-21&lt;BR /&gt; UK, 5.6, 2013-04-15&lt;BR /&gt; UK, 3.9, 2013-05-12&lt;BR /&gt; UK, 6.9, 2013-06-06&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Let&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vFromDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('2013-01-01', 'YYYY-MM-DD'));&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Let&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vToDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('2013-06-30', 'YYYY-MM-DD')); &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;SPAN style="font-size: 8pt;"&gt;I have double-checked everything and couldn't find out why this doesn't work properly.&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 12:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449377#M433977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-23T12:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Strings within Strings in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449378#M433978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be working (with some changes)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Your variable date range included all the observations... so in order to test the set analysis, I changed the vFronDate to 2013-04-01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Used SET DateFormat='YYYY-MM-DD'; in the environmental variable to make sure your SalesDate field is read as a date field by QlikView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;SET DateFormat='YYYY-MM-DD';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country, Value, SalesDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 12, 2013-01-04&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 14.5, 2013-02-07&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 6.6, 2013-03-03&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 4.5, 2013-04-11&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 7.8, 2013-05-19&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA, 9.4, 2013-06-22&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UK, 11.3, 2013-01-31&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UK, 10.1, 2013-02-01&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UK, 3.2, 2013-03-21&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UK, 5.6, 2013-04-15&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UK, 3.9, 2013-05-12&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UK, 6.9, 2013-06-06&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vFromDate=Floor(Date#('&lt;SPAN style="color: #ff0000;"&gt;2013-04-01&lt;/SPAN&gt;', 'YYYY-MM-DD'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vToDate=Floor(Date#('2013-06-30', 'YYYY-MM-DD'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;SalesDate={"&amp;gt;=$(=Date(vFromDate, 'YYYY-MM-DD'))&amp;lt;=$(=Date(vToDate, 'YYYY-MM-DD'))"}&amp;gt;} Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/174420_Capture.PNG" style="height: 180px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449378#M433978</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-23T15:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Strings within Strings in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449379#M433979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sunny, and everyone else &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 09:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449379#M433979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-24T09:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Strings within Strings in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449380#M433980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem... if you got what you wanted, I would request you to close this thread by marking correct and helpful responses.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-14806"&gt;Qlik Community Tip: Marking Replies as Correct or Helpful&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:32:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strings-within-Strings-in-Set-Analysis/m-p/1449380#M433980</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-24T15:32:12Z</dc:date>
    </item>
  </channel>
</rss>

