<?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 Variable multiplicative date periods in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-multiplicative-date-periods-in-set-analysis/m-p/784860#M277762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to built a report which uses set analysis to separate invoiced products into periods that the user defines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&amp;nbsp; I want to have variable columns created by the user using variable 'vVariableDateSearch', this creates periods such as 0-30 Days, 31-60 Days, 90+ Days etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis expression I've got for the second column is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;PLR_PLY_INVOICEDATE&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;"&amp;gt;=($(=vCurrentDate&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;)-$(=vVariableDateSearch)*2)&amp;lt;($(=vCurrentDate)-$(=vVariableDateSearch))"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt;PLR_PLY_T_DUEBYCLIENT-PLR_PLY_PAIDTODATE&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Note, the strictly less than sign is intentional and that 'vCurrentDate' is the variable for today.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I run this my output only shows $0.00's.&amp;nbsp; The other issue is that the below example seems to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;SPAN style="color: #000000;"&gt;($&amp;lt;&lt;SPAN style="color: #993300;"&gt;PLR_PLY_INVOICEDATE&lt;SPAN style="color: #000000;"&gt;={&lt;SPAN style="color: #993300;"&gt;"&amp;gt;=($(=vCurrentDate)-$(vVariableDateSearch))&amp;lt;=$(=vCurrentDate)"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;SPAN style="color: #993300;"&gt;PLR_PLY_T_DUEBYCLIENT&lt;SPAN style="color: #000000;"&gt;-&lt;/SPAN&gt;PLR_PLY_PAIDTODATE&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've also tried replacing section [$(=vCurrentDate)-($(=vVariableDateSearch)*2)] with [$(=vCurrentDate)-$(=vVariableDateSearch)-$(=vVariableDateSearch)] however this doesn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone let me know where the issue in the expression might be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2014 06:57:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-20T06:57:14Z</dc:date>
    <item>
      <title>Variable multiplicative date periods in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-multiplicative-date-periods-in-set-analysis/m-p/784860#M277762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to built a report which uses set analysis to separate invoiced products into periods that the user defines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&amp;nbsp; I want to have variable columns created by the user using variable 'vVariableDateSearch', this creates periods such as 0-30 Days, 31-60 Days, 90+ Days etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis expression I've got for the second column is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;PLR_PLY_INVOICEDATE&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;"&amp;gt;=($(=vCurrentDate&lt;/SPAN&gt;&lt;SPAN style="color: #993300;"&gt;)-$(=vVariableDateSearch)*2)&amp;lt;($(=vCurrentDate)-$(=vVariableDateSearch))"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;/SPAN&gt;PLR_PLY_T_DUEBYCLIENT-PLR_PLY_PAIDTODATE&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Note, the strictly less than sign is intentional and that 'vCurrentDate' is the variable for today.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when I run this my output only shows $0.00's.&amp;nbsp; The other issue is that the below example seems to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;SPAN style="color: #000000;"&gt;($&amp;lt;&lt;SPAN style="color: #993300;"&gt;PLR_PLY_INVOICEDATE&lt;SPAN style="color: #000000;"&gt;={&lt;SPAN style="color: #993300;"&gt;"&amp;gt;=($(=vCurrentDate)-$(vVariableDateSearch))&amp;lt;=$(=vCurrentDate)"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;}&lt;SPAN style="color: #993300;"&gt;PLR_PLY_T_DUEBYCLIENT&lt;SPAN style="color: #000000;"&gt;-&lt;/SPAN&gt;PLR_PLY_PAIDTODATE&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've also tried replacing section [$(=vCurrentDate)-($(=vVariableDateSearch)*2)] with [$(=vCurrentDate)-$(=vVariableDateSearch)-$(=vVariableDateSearch)] however this doesn't work either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone let me know where the issue in the expression might be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 06:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-multiplicative-date-periods-in-set-analysis/m-p/784860#M277762</guid>
      <dc:creator />
      <dc:date>2014-11-20T06:57:14Z</dc:date>
    </item>
  </channel>
</rss>

