<?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: Declare variable inside set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Declare-variable-inside-set-analysis/m-p/991448#M337801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want to achieve with this? Could you explain? Maybe we could come with suggestions by other approaches?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can parameterize a variable - turning it into something similar to a function? Would that be helpful?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 15:38:30 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-10-29T15:38:30Z</dc:date>
    <item>
      <title>Declare variable inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-variable-inside-set-analysis/m-p/991446#M337799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlik Community. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to declare a variable inside a set analysis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;marked in red what I hope to achieve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;local_variable&lt;/SPAN&gt;= 2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;sum({&amp;lt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Calendar_Date={"&amp;gt;=$(=weekstart(Date(Max(Calendar_Date)+(7*&lt;SPAN style="color: #ff0000;"&gt;local_variable&lt;/SPAN&gt;))))&amp;lt;=$(=Date(weekstart(Date(Max(Calendar_Date)+(7*&lt;SPAN style="color: #ff0000; font-size: 13.3333px;"&gt;local_variable&lt;/SPAN&gt;)))+6))"}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;,_Employee_FlagTerminated-={1}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;,TimeForecastVersion_Name={"Commit"}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;,Calendar_WeekOfYear=&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;,Calendar_YearInt=&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;gt;}M_ForecastHours)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that I am aware of the variable declaration in variable overview, but I'm not interested in this solution if possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 14:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-variable-inside-set-analysis/m-p/991446#M337799</guid>
      <dc:creator>alexbjorlig</dc:creator>
      <dc:date>2015-10-29T14:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Declare variable inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-variable-inside-set-analysis/m-p/991447#M337800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No this is not possible. Variables exist on a global scope in QlikView and they are declared via menus and dialogs or in your load script. You could also declare them via the COM-api and Macros...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 15:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-variable-inside-set-analysis/m-p/991447#M337800</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-29T15:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Declare variable inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-variable-inside-set-analysis/m-p/991448#M337801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want to achieve with this? Could you explain? Maybe we could come with suggestions by other approaches?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can parameterize a variable - turning it into something similar to a function? Would that be helpful?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 15:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-variable-inside-set-analysis/m-p/991448#M337801</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-29T15:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Declare variable inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Declare-variable-inside-set-analysis/m-p/991449#M337802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help - and good to know it's not possible. I guess it would be for rapid replication of expressions, say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(sum({&amp;lt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,_Employee_FlagTerminated-={&lt;STRONG&gt;variable&lt;/STRONG&gt;}&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}M_ForecastHours)&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,_Employee_FlagTerminated-={&lt;STRONG&gt;variable&lt;/STRONG&gt;}&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}M_UsedHours)&amp;gt;0,&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,_Employee_FlagTerminated-={&lt;STRONG&gt;variable&lt;/STRONG&gt;}&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}M_ForecastHours)&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,_Employee_FlagTerminated-={&lt;STRONG&gt;variable&lt;/STRONG&gt;}&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}M_UsedHours))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 15:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Declare-variable-inside-set-analysis/m-p/991449#M337802</guid>
      <dc:creator>alexbjorlig</dc:creator>
      <dc:date>2015-10-29T15:43:30Z</dc:date>
    </item>
  </channel>
</rss>

