<?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: Date in Set Analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-in-Set-Analysis/m-p/1059432#M354848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;prod_dt={"$(=vLastMonth)"}, renewal_dt={&lt;SPAN style="color: #ff0000;"&gt;"$(='&amp;gt;=' &amp;amp; $(=vMonthStart) &amp;amp; '&amp;lt;=' &amp;amp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;$(=vMonthEnd))&lt;/SPAN&gt;"&lt;/SPAN&gt;}&amp;gt;}curr_bal_amt)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Apr 2016 17:35:06 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-04-05T17:35:06Z</dc:date>
    <item>
      <title>Date in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-Set-Analysis/m-p/1059429#M354845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;prod_dt={"$(=vLastMonth)"},renewal_dt={"&amp;gt;='$(=vMonthStart)' &amp;lt;=$(=vMonthEnd)"}&amp;gt;}curr_bal_amt) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason it is not working.&amp;nbsp; Originally I tested by doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;prod_dt={'2/29/2016'},renewal_dt={"&amp;gt;=3/1/2016&amp;lt;=3/31/2016"}&amp;gt;}curr_bal_amt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I created the vLast month variable, which is =PrevMonthEnd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I created vMonthEnd which is MonthEnd(prod_dt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also vMonthStart which is MonthStart(prod_dt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The furthest the expressions got with the variables was &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;prod_dt={"$(=vLastMonth)"},renewal_dt={"&amp;gt;='$(=vMonthStart)' &amp;lt;=3/31/2016"}&amp;gt;}curr_bal_amt)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would think I would be able to switch 3/31/2016 with &lt;SPAN style="font-size: 13.3333px;"&gt;'$(=vMonthEnd)' which should work but it is not. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I resolve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 16:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-Set-Analysis/m-p/1059429#M354845</guid>
      <dc:creator>qlikofba</dc:creator>
      <dc:date>2016-04-05T16:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-Set-Analysis/m-p/1059430#M354846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you put your expression with the variables in a straight table, leaving the expression label empty, then hover with the mouse over the expression header, what do you see when the variable gets expanded?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-Set-Analysis/m-p/1059430#M354846</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-05T17:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-Set-Analysis/m-p/1059431#M354847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="snip.PNG" class="jive-image image-1" height="347" src="https://community.qlik.com/legacyfs/online/120585_snip.PNG" style="height: 347px; width: 616.447px;" width="616" /&gt;&lt;/P&gt;&lt;P&gt;Is This what you mean? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-Set-Analysis/m-p/1059431#M354847</guid>
      <dc:creator>qlikofba</dc:creator>
      <dc:date>2016-04-05T17:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-Set-Analysis/m-p/1059432#M354848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;prod_dt={"$(=vLastMonth)"}, renewal_dt={&lt;SPAN style="color: #ff0000;"&gt;"$(='&amp;gt;=' &amp;amp; $(=vMonthStart) &amp;amp; '&amp;lt;=' &amp;amp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;$(=vMonthEnd))&lt;/SPAN&gt;"&lt;/SPAN&gt;}&amp;gt;}curr_bal_amt)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 17:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-Set-Analysis/m-p/1059432#M354848</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-05T17:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Date-in-Set-Analysis/m-p/1059433#M354849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You already got an answer, but yes, that's what I was talking about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You probably noticed that your dollar sign expansions created a function call statement, but you need literal values in the numeric search, just like the dollar sign expansion worked for vLastMonth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the only thing you need to take care of would have been to correct your variable definitions e.g. vMonthStart should be defined as &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;=MonthStart(prod_dt)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with a leading equal sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same for vMonthEnd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the field modifier should be as simple as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&amp;lt; renewal_dt={&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;"&amp;gt;=$(vMonthStart)&amp;lt;=$&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px;"&gt;(vMonthEnd)&lt;/SPAN&gt;"&lt;/SPAN&gt;} &amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3996"&gt;The Little Equals Sign&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3444"&gt;The Magic of Dollar Expansions&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2016 21:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-in-Set-Analysis/m-p/1059433#M354849</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-05T21:32:17Z</dc:date>
    </item>
  </channel>
</rss>

