<?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 Storing Set Analysis to Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589773#M1095462</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression that calculates the amount per Report Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;%Report_Date_Id = {$(=Max(%Report_Date_Id))}, Year = , Quarter = , Month = &amp;gt;} [Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to save the set analysis expression (just the point in time expression) into a variable since I will need it in multiple places in the document and possibly on other documents too.&amp;nbsp;&amp;nbsp; I tried the following but none of them works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vCurrentPeriod = %Report_Date_Id = {$(=Max(%Report_Date_Id))}, Year = , Quarter = , Month =;&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;set vCurrentPeriod =&amp;nbsp; '%Report_Date_Id = {$(=Max(%Report_Date_Id))}, Year = , Quarter = , Month ='&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to be able to do this on the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;$(vCurrentPeriod)&amp;gt;} [Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2014 14:05:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-02T14:05:46Z</dc:date>
    <item>
      <title>Storing Set Analysis to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589773#M1095462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression that calculates the amount per Report Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;%Report_Date_Id = {$(=Max(%Report_Date_Id))}, Year = , Quarter = , Month = &amp;gt;} [Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to save the set analysis expression (just the point in time expression) into a variable since I will need it in multiple places in the document and possibly on other documents too.&amp;nbsp;&amp;nbsp; I tried the following but none of them works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vCurrentPeriod = %Report_Date_Id = {$(=Max(%Report_Date_Id))}, Year = , Quarter = , Month =;&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;set vCurrentPeriod =&amp;nbsp; '%Report_Date_Id = {$(=Max(%Report_Date_Id))}, Year = , Quarter = , Month ='&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to be able to do this on the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({$&amp;lt;$(vCurrentPeriod)&amp;gt;} [Amount])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 14:05:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589773#M1095462</guid>
      <dc:creator />
      <dc:date>2014-05-02T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Set Analysis to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589774#M1095463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;LET vCurrentPeriod = '%Report_Date_Id = {$' &amp;amp; '(=Max(%Report_Date_Id))}, Year = , Quarter = , Month =';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 14:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589774#M1095463</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-05-02T14:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Set Analysis to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589775#M1095464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;press ctrl+alt +v&lt;/P&gt;&lt;P&gt;and create variable over there and doesnot give = sigh before &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=%Report_Date_Id = {$(=Max(%Report_Date_Id))}, Year = , Quarter = , Month =&amp;nbsp; --&amp;gt;&amp;gt;&amp;gt;&amp;gt; wrong method&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;%Report_Date_Id = {$(=Max(%Report_Date_Id))}, Year = , Quarter = , Month =&amp;nbsp; ------&amp;gt;&amp;gt;Correct method&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u can use &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({$&amp;lt;$(vCurrentPeriod)&amp;gt;} [Amount])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 14:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589775#M1095464</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-05-02T14:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Set Analysis to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589776#M1095465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kumar I was able to make this work using this approach.&amp;nbsp; I wanted to save this in a .qvs file so I'll have to do the assignment in script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 15:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589776#M1095465</guid>
      <dc:creator />
      <dc:date>2014-05-02T15:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Set Analysis to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589777#M1095466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;Gysbert Wassenaar&lt;/A&gt; this solved my problem.&amp;nbsp; I did notice that when I was using the SET, the value stored when I look at the variable overview screen is different than what I assigned in the script.&amp;nbsp; It looks like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCurrentPeriod = '%Report_Date_Id = {}, Year = , Quarter = , Month =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what's happening but it is dropping the dollar expansion expression inside the curly braces.&amp;nbsp; But using LET and breaking it into 2 strings somehow worked.&amp;nbsp; Would you explain the logic behind that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 15:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589777#M1095466</guid>
      <dc:creator />
      <dc:date>2014-05-02T15:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Set Analysis to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589778#M1095467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then once try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vCurrentPeriod = '%Report_Date_Id = {$(=Max(%Report_Date_Id))}, Year = , Quarter = , Month =&lt;/SPAN&gt;' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write in excel and peek it from there &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 15:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589778#M1095467</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2014-05-02T15:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Storing Set Analysis to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589779#M1095468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;You can use ASCII values along with LET statement. Something like this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;LET vMyExpression = 'Sum({&amp;lt;%Report_Date_Id = {' &amp;amp; Chr(36) &amp;amp; '(=Max(%Report_Date_Id))}, Year = , Quarter = , Month = &amp;gt;} [Amount])';&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;www.QlikShare.com&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 15:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589779#M1095468</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2014-05-02T15:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Set Analysis to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589780#M1095469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had this originally but it does not work.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;set &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;vCurrentPeriod = '%Report_Date_Id = {$(=Max(%Report_Date_Id))}, Year = , Quarter = , Month =&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 15:40:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Set-Analysis-to-Variable/m-p/589780#M1095469</guid>
      <dc:creator />
      <dc:date>2014-05-02T15:40:38Z</dc:date>
    </item>
  </channel>
</rss>

