<?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 Using Current Selections to govern calculations in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Current-Selections-to-govern-calculations-in-Script/m-p/192700#M54260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tony,&lt;BR /&gt;Using "actions" or macros, you can capture field selections into variables, and variables can be used in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2011 12:46:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-03-31T12:46:42Z</dc:date>
    <item>
      <title>Using Current Selections to govern calculations in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Current-Selections-to-govern-calculations-in-Script/m-p/192699#M54259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, can you give a new to QlikView guy some help.&lt;/P&gt;&lt;P&gt;I have cribbed my calendar and set analysis stuff from a forum posting "PointInTimeReporting" and built further on that to add on Fiscal calendar data.&lt;/P&gt;&lt;P&gt;I now have a single calendar that contains an entry for each date. Each data has both calendar and fiscal calendar data against it.&lt;/P&gt;&lt;P&gt;My application offers the user 2 sets of list boxes - 1 for calendar Year and Month, the other for Fiscal year and Period ( [ Fin Year] and Fin_Period ).&lt;/P&gt;&lt;P&gt;I am trying to build the majority of logic into my script to keep chart expressions as simple as possible.&lt;/P&gt;&lt;P&gt;I have set up variables one of which is vSelectedCalYear with a definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ISNull(GetFieldSelections(Fin_Period)) AND ISNull(GetFieldSelections([Fin Year])), 'Year', 'F.Yr')&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I was hoping to use this in the script to detect which of the 2 calendars the user has selected from but I get an error indicating that the GetFieldSelections is illegal in the script.&lt;/P&gt;&lt;P&gt;Is there an (easy) alternative way to govern which calculations are performed in the script based on whether the user selected calendar or Fiscal dates?&lt;/P&gt;&lt;P&gt;Any help greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Current-Selections-to-govern-calculations-in-Script/m-p/192699#M54259</guid>
      <dc:creator />
      <dc:date>2011-03-31T12:34:36Z</dc:date>
    </item>
    <item>
      <title>Using Current Selections to govern calculations in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Current-Selections-to-govern-calculations-in-Script/m-p/192700#M54260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tony,&lt;BR /&gt;Using "actions" or macros, you can capture field selections into variables, and variables can be used in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 12:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Current-Selections-to-govern-calculations-in-Script/m-p/192700#M54260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-31T12:46:42Z</dc:date>
    </item>
    <item>
      <title>Using Current Selections to govern calculations in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Current-Selections-to-govern-calculations-in-Script/m-p/192701#M54261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for not responding sooner Michael. Many Thanks for you help, it has put me on the right track I think. Really appreciate it. Best Regards. Tony.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 16:42:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Current-Selections-to-govern-calculations-in-Script/m-p/192701#M54261</guid>
      <dc:creator />
      <dc:date>2011-04-05T16:42:37Z</dc:date>
    </item>
  </channel>
</rss>

