<?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: Calculating a variable from an input field? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-a-variable-from-an-input-field/m-p/1770497#M454584</link>
    <description>&lt;P&gt;Try something like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set vWeek=Week(date#('$(vInputDate)', 'DD/MM/YYYY'))&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Dec 2020 12:58:22 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-12-25T12:58:22Z</dc:date>
    <item>
      <title>Calculating a variable from an input field?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-variable-from-an-input-field/m-p/1770484#M454582</link>
      <description>&lt;P&gt;I am sure I am missing something very straightforward, so some assistance would be appreciated.&amp;nbsp; In my load script I load a master calendar, Which has a range of dates corresponding to the range of dates in the transaction file, plus the number of the week in the year. The date links to a date field in the transaction file I am loading.&amp;nbsp; I want the user to enter a date (any date in the range of the master calendar) which I store in a variable I called 'vInputDate'. Based on the date the user enters I want to assign a variable the corresponding value of the week variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if the user enters 12/12/2020, I want the week variable to reflect 50, and if the user enters 16/12/2020 I want the week variable to reflect 51. This needs to be done dynamically as the user can select whichever date he wants to report on.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2020 10:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-variable-from-an-input-field/m-p/1770484#M454582</guid>
      <dc:creator>DexterAlex</dc:creator>
      <dc:date>2020-12-25T10:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a variable from an input field?</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-a-variable-from-an-input-field/m-p/1770497#M454584</link>
      <description>&lt;P&gt;Try something like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set vWeek=Week(date#('$(vInputDate)', 'DD/MM/YYYY'))&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2020 12:58:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-a-variable-from-an-input-field/m-p/1770497#M454584</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-12-25T12:58:22Z</dc:date>
    </item>
  </channel>
</rss>

