<?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: Help understanding set analysis with dates and dollar sign expansion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-understanding-set-analysis-with-dates-and-dollar-sign/m-p/1817130#M1213099</link>
    <description>&lt;P&gt;sunny_talwar,&lt;/P&gt;&lt;P&gt;That worked!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&amp;nbsp;I really appreciate your help! I was so stuck on this issue.&lt;/P&gt;&lt;P&gt;I was reading about equal signs, dollar expansion and when variables are evaluated, but I think I am missing something.&lt;/P&gt;&lt;P&gt;My guess of what you fixed is that the first $ expands out the variable before evaluating the entire expression. So my version didn't really expand it and may have had this expression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=SUM( {&amp;lt; FiscalYearStart = { "&amp;gt;  vConvertInToDate(20190301) "} &amp;gt; } Sales )&lt;/LI-CODE&gt;&lt;P&gt;with the $ and = the expression became this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;FiscalYearStart = {"&amp;gt; =3/1/2019" }&amp;gt;} Sales)&lt;/LI-CODE&gt;&lt;P&gt;Is that what was going on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for the help/solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 19:37:53 GMT</pubDate>
    <dc:creator>treborscottnam</dc:creator>
    <dc:date>2021-06-22T19:37:53Z</dc:date>
    <item>
      <title>Help understanding set analysis with dates and dollar sign expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-set-analysis-with-dates-and-dollar-sign/m-p/1817092#M1213094</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In QlikView, I am trying to get my head around Set Analysis, dates in variables, dollar sign expansion and how they all should be working together.&lt;/P&gt;&lt;P&gt;I have this expression in a TextBox and I am getting the correct results:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=SUM( {&amp;lt;FiscalYearStart = { "&amp;gt;3/1/2019"} &amp;gt; } Sales )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;As I understand it, this sums up all the sales where the FiscalYearStart is after 3/1/2019.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also I have this variable :&lt;BR /&gt;&lt;EM&gt;vConvertIntToDate = Date(Date#($1,'YYYYMMDD'),'M/D/YYYY')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So if I use it in a TextBox like this:&lt;BR /&gt;&lt;EM&gt;=$(vConvertIntToDate(20190301))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I get the proper results of: 3/1/2019&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now when I try to combine them, like this:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=SUM( {&amp;lt; FiscalYearStart = { "&amp;gt;&amp;nbsp; $(vConvertIntToDate(20190301)) "} &amp;gt; } Sales )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I get 0 as a result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping for some insight on what I am doing wrong.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 16:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-set-analysis-with-dates-and-dollar-sign/m-p/1817092#M1213094</guid>
      <dc:creator>treborscottnam</dc:creator>
      <dc:date>2021-06-22T16:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding set analysis with dates and dollar sign expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-set-analysis-with-dates-and-dollar-sign/m-p/1817128#M1213098</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;FiscalYearStart = {"&amp;gt;$(=$(vConvertIntToDate(20190301)))"}&amp;gt;} Sales)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, you need another dollar sign expansion on top of your variable here...&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 19:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-set-analysis-with-dates-and-dollar-sign/m-p/1817128#M1213098</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2021-06-22T19:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding set analysis with dates and dollar sign expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-set-analysis-with-dates-and-dollar-sign/m-p/1817130#M1213099</link>
      <description>&lt;P&gt;sunny_talwar,&lt;/P&gt;&lt;P&gt;That worked!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&amp;nbsp;I really appreciate your help! I was so stuck on this issue.&lt;/P&gt;&lt;P&gt;I was reading about equal signs, dollar expansion and when variables are evaluated, but I think I am missing something.&lt;/P&gt;&lt;P&gt;My guess of what you fixed is that the first $ expands out the variable before evaluating the entire expression. So my version didn't really expand it and may have had this expression:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=SUM( {&amp;lt; FiscalYearStart = { "&amp;gt;  vConvertInToDate(20190301) "} &amp;gt; } Sales )&lt;/LI-CODE&gt;&lt;P&gt;with the $ and = the expression became this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum({&amp;lt;FiscalYearStart = {"&amp;gt; =3/1/2019" }&amp;gt;} Sales)&lt;/LI-CODE&gt;&lt;P&gt;Is that what was going on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for the help/solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 19:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-set-analysis-with-dates-and-dollar-sign/m-p/1817130#M1213099</guid>
      <dc:creator>treborscottnam</dc:creator>
      <dc:date>2021-06-22T19:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding set analysis with dates and dollar sign expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-set-analysis-with-dates-and-dollar-sign/m-p/1817133#M1213100</link>
      <description>&lt;P&gt;Ya, basically $(=....) tells it to expand whatever is inside it... so look at this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sunny_talwar_0-1624391059594.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/57370i027F44C82CBD2870/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sunny_talwar_0-1624391059594.png" alt="sunny_talwar_0-1624391059594.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The expression in yellow is&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;FiscalYearStart = {"&amp;gt;$(=$(vConvertIntToDate(20190301)))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;The expression in Blue is&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;FiscalYearStart = {"&amp;gt;$(vConvertIntToDate(20190301))"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;So, the variable was replaced with the expression within&amp;nbsp;vConvertIntToDate, but it wasn't calculating the final value to use here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 19:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-set-analysis-with-dates-and-dollar-sign/m-p/1817133#M1213100</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2021-06-22T19:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help understanding set analysis with dates and dollar sign expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Help-understanding-set-analysis-with-dates-and-dollar-sign/m-p/1817451#M1213119</link>
      <description>&lt;P&gt;That definitely helps my understanding.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 17:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-understanding-set-analysis-with-dates-and-dollar-sign/m-p/1817451#M1213119</guid>
      <dc:creator>treborscottnam</dc:creator>
      <dc:date>2021-06-23T17:13:23Z</dc:date>
    </item>
  </channel>
</rss>

