<?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: Is it possible and how to use arithmetic operations over selected values and set result of these operations as a value in Set Expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390946#M819863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;[WeekStartDate] = {"$(=&lt;SPAN style="color: #ff0000;"&gt;Date&lt;/SPAN&gt;([WeekStartDate]-7&lt;SPAN style="color: #ff0000;"&gt;, 'DateFieldFormatHere')&lt;/SPAN&gt;)"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// some complicated calculation here&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Replace the DateFieldFormatHere with the format for WeekStartDate Field. Also, read here&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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>Fri, 11 Aug 2017 15:10:02 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-08-11T15:10:02Z</dc:date>
    <item>
      <title>Is it possible and how to use arithmetic operations over selected values and set result of these operations as a value in Set Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390945#M819862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have same weekly data and task to make a report for previous week relative to selected one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get data for selected week is easy task:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[WeekStartDate] = $([WeekStartDate])&amp;gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// some complicated calculation here&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For previous week hoped following code will do but failed:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[WeekStartDate]={"$(=(Num([WeekStartDate])))-7"}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;// some complicated calculation here&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm relatively new to Qlik Sense, so will be grateful for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390945#M819862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible and how to use arithmetic operations over selected values and set result of these operations as a value in Set Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390946#M819863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;[WeekStartDate] = {"$(=&lt;SPAN style="color: #ff0000;"&gt;Date&lt;/SPAN&gt;([WeekStartDate]-7&lt;SPAN style="color: #ff0000;"&gt;, 'DateFieldFormatHere')&lt;/SPAN&gt;)"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// some complicated calculation here&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Replace the DateFieldFormatHere with the format for WeekStartDate Field. Also, read here&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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>Fri, 11 Aug 2017 15:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390946#M819863</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-11T15:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible and how to use arithmetic operations over selected values and set result of these operations as a value in Set Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390947#M819865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Checked that:&lt;BR /&gt;As a WeekStartDate I have for example value 42912. &lt;/P&gt;&lt;P&gt;And it works great with other data fields calculations, but not with user selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:18:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390947#M819865</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-11T15:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible and how to use arithmetic operations over selected values and set result of these operations as a value in Set Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390948#M819867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What selections are making? Do you need a max function if there are more than one date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;[WeekStartDate] = {"$(=Date(&lt;SPAN style="color: #ff0000;"&gt;Max&lt;/SPAN&gt;([WeekStartDate])-7, 'DateFieldFormatHere'))"}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// some complicated calculation here&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390948#M819867</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-11T15:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible and how to use arithmetic operations over selected values and set result of these operations as a value in Set Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390949#M819868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is/will be selection of one week, therefore one date. Not an issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390949#M819868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-11T15:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible and how to use arithmetic operations over selected values and set result of these operations as a value in Set Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390950#M819869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Difficult to know what might be wrong without taking a look&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:33:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-and-how-to-use-arithmetic-operations-over/m-p/1390950#M819869</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-11T15:33:45Z</dc:date>
    </item>
  </channel>
</rss>

