<?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 Issue Moving Set expression to Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-Moving-Set-expression-to-Variable/m-p/875534#M1009753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am moving my set analysis expression to variable and using that variable into charts for calculation but the variable shows error message like "Error:Garbage After Expression 'K'"(In set analysis expression calculates amount and converted amount into 'M'(Million),'K'(Thousand's)).when I used the the variable 'vPremium_Amount' it shows values but not exactly correct, when I used $(vPremium_Amount) it doesn't show any value shows error message.please help me to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Anusha k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 06:27:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-05T06:27:50Z</dc:date>
    <item>
      <title>Issue Moving Set expression to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-Moving-Set-expression-to-Variable/m-p/875534#M1009753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am moving my set analysis expression to variable and using that variable into charts for calculation but the variable shows error message like "Error:Garbage After Expression 'K'"(In set analysis expression calculates amount and converted amount into 'M'(Million),'K'(Thousand's)).when I used the the variable 'vPremium_Amount' it shows values but not exactly correct, when I used $(vPremium_Amount) it doesn't show any value shows error message.please help me to resolve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Anusha k&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 06:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-Moving-Set-expression-to-Variable/m-p/875534#M1009753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-05T06:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Moving Set expression to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-Moving-Set-expression-to-Variable/m-p/875535#M1009754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you use = in variable is already calculated in declararion --&amp;gt;Variable overview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please post your expression.Might be some where your expression is going wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 06:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-Moving-Set-expression-to-Variable/m-p/875535#M1009754</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-05T06:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Moving Set expression to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-Moving-Set-expression-to-Variable/m-p/875536#M1009755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Post ur expression as well as variable expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 06:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-Moving-Set-expression-to-Variable/m-p/875536#M1009755</guid>
      <dc:creator />
      <dc:date>2015-05-05T06:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Moving Set expression to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-Moving-Set-expression-to-Variable/m-p/875537#M1009756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my set expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Life Annual Premium ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Life Sing Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))&lt;BR /&gt;&lt;BR /&gt;+ Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ AnnulPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ SingPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))+&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &amp;gt; 1000000,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Num(Round((Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Life Annual Premium ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Life Sing Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))&lt;BR /&gt;&lt;BR /&gt;+ Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ AnnulPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ SingPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))+&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) /1000000),'$#,##0 M'),&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If((Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Life Annual Premium ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Life Sing Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))&lt;BR /&gt;&lt;BR /&gt;+ Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ AnnulPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ SingPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))+&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) ) &amp;gt; 1000,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Num(Round((Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Life Annual Premium ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Life Sing Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))&lt;BR /&gt;&lt;BR /&gt;+ Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ AnnulPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ SingPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))+&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) /1000),'$#,##0 K'),&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Num(Round(Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Life Annual Premium ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Life Sing Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))&lt;BR /&gt;&lt;BR /&gt;+ Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ AnnulPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Sing Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))+&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),'$#,##0')))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I keep this expression into a variable &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;vAmount=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Life Annual Premium ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Life Sing Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))&lt;BR /&gt;&lt;BR /&gt;+ Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ AnnulPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ SingPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))+&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &amp;gt; 1000000,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Num(Round((Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Life Annual Premium ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Life Sing Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))&lt;BR /&gt;&lt;BR /&gt;+ Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ AnnulPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ SingPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))+&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) /1000000),'$#,##0 M'),&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If((Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Life Annual Premium ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Life Sing Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))&lt;BR /&gt;&lt;BR /&gt;+ Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ AnnulPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ SingPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))+&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) ) &amp;gt; 1000,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Num(Round((Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Life Annual Premium ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Life Sing Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))&lt;BR /&gt;&lt;BR /&gt;+ Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ AnnulPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ SingPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))+&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) /1000),'$#,##0 K'),&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Num(Round(Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Life Annual Premium ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Life Sing Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))&lt;BR /&gt;&lt;BR /&gt;+ Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ AnnulPremium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Z',1,0))+(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Sing Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;*if(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&amp;nbsp; Premium Type]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='S',1,0)))+&lt;BR /&gt;&lt;BR /&gt;Sum({&amp;lt;PrYear={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(PrYear)-1)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;},PrMonth={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=Max(PrMonth))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[ Premium Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),'$#,##0')))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If i use this variable $(vAmount) it Shows error like garbage after 'k'&lt;BR /&gt; or 'm'.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 07:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-Moving-Set-expression-to-Variable/m-p/875537#M1009756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-05T07:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Moving Set expression to Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-Moving-Set-expression-to-Variable/m-p/875538#M1009757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou Praveena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 07:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-Moving-Set-expression-to-Variable/m-p/875538#M1009757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-05T07:30:25Z</dc:date>
    </item>
  </channel>
</rss>

