<?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: $ sign issue inside set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759039#M270095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I readed it fast, if the values changes when you select another SpendYear, it means than it changes the value of YTDMonth variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you can try what sunindia saids. If fixing set analysis to '2015' works as you expected, the problem is with the value contained in the variable, not in expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Feb 2015 13:12:23 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2015-02-06T13:12:23Z</dc:date>
    <item>
      <title>$ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759030#M270086</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;I have the below expression in chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14232265593485125" jivemacro_uid="_14232265593485125" modifiedtitle="true"&gt;
&lt;P&gt;=sum({&amp;lt;SpendYear={"=$(=left(YTDMonth,4))"}&amp;gt;}SaleAmount)&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YTDMonth is a variable and it is in the format 201501. I want the expression to evaluate only for 2015 and I wrote the above expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I do not want the above expression to change value with selection of SpendYear. However, it changes values if I select different years in SpendYear filter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short, I want the above expression to behave like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;SpendYear={2015}&amp;gt;}SaleAmount) and if someone changes selection, it should not change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 12:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759030#M270086</guid>
      <dc:creator />
      <dc:date>2015-02-06T12:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759031#M270087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;try this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;=sum({&amp;lt;SpendYear={'$(=left(YTDMonth,4))'}&amp;gt;}SaleAmount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 12:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759031#M270087</guid>
      <dc:creator>Yousef_Amarneh</dc:creator>
      <dc:date>2015-02-06T12:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759032#M270088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may be missing something, but whats wrong with using this expression in that case: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=sum({&amp;lt;SpendYear={2015}&amp;gt;}SaleAmount)?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 12:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759032#M270088</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-06T12:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759033#M270089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got what you want exactly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;=sum({&amp;lt;SpendYear={'2015*'}&amp;gt;}SaleAmount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 12:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759033#M270089</guid>
      <dc:creator>Yousef_Amarneh</dc:creator>
      <dc:date>2015-02-06T12:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759034#M270090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed, if you want to SpendYear to be always his max value you can use:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;SpendYear={$(=Max({1} SpendYear))}&amp;gt;}SaleAmount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your expression, if there are more than one YTDMonth included in the selections, the Left funcion will return null()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 12:55:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759034#M270090</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-02-06T12:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759035#M270091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yousef,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why would you put an * next to year? Spend year will only be an year (nothing would be attached to it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 12:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759035#M270091</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-06T12:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759036#M270092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunidia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you alright, I thought the spend year format is YYYYMM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 12:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759036#M270092</guid>
      <dc:creator>Yousef_Amarneh</dc:creator>
      <dc:date>2015-02-06T12:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759037#M270093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YTDMonth is a variable so it always will have one value. I probably do not need to use a max function here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do it like Field = {"$(=expression)"} because there are many scenarios where I need the dollar sign expansion in the set analysis. However, I have trouble when the selection changes. I need to fix that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 13:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759037#M270093</guid>
      <dc:creator />
      <dc:date>2015-02-06T13:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759038#M270094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can attached an example with sample of data it would be better, I cannot get your point&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 13:04:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759038#M270094</guid>
      <dc:creator>Yousef_Amarneh</dc:creator>
      <dc:date>2015-02-06T13:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759039#M270095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I readed it fast, if the values changes when you select another SpendYear, it means than it changes the value of YTDMonth variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you can try what sunindia saids. If fixing set analysis to '2015' works as you expected, the problem is with the value contained in the variable, not in expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 13:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759039#M270095</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-02-06T13:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759040#M270096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you just say that YTDMonth is a variable? Are you sure it is a variable or you wanted to say its a field name? and can you not use what &lt;STRONG style="font-size: 11.6999998092651px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/RubenMarin"&gt;RubenMarin&lt;/A&gt; &lt;/STRONG&gt;mentioned in his post?&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; font-size: 13px;"&gt;&lt;STRONG&gt;=sum({&amp;lt;SpendYear={$(=Max({1} SpendYear))}&amp;gt;}SaleAmount)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to me this looks like a sleek solution for what you are trying to achieve, unless &lt;STRONG&gt;SpendYear's Year&lt;/STRONG&gt; values doesn't match &lt;STRONG&gt;YTDMonth's Year&lt;/STRONG&gt; values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 13:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759040#M270096</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-06T13:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759041#M270097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for the suggestions and the help for this problem. Here are answer to two common questions asked above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) YTDMonthID is a variable and not a field. It comes from the load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) YTDMonthID does not change with selection. However, the expression that I gave above changes its value with different selections. For example, If select any spendyear, the value of the expression changes but the YTDMonthId is always same .i.e 2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14232289224896679" jivemacro_uid="_14232289224896679"&gt;
&lt;P&gt;=sum({&amp;lt;SpendYear={"=$(=left(YTDMonth,4))"}&amp;gt;}SaleAmount) &lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;changes with different spendyear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14232289319191139 jive_macro_code" jivemacro_uid="_14232289319191139"&gt;
&lt;P&gt;=sum({&amp;lt;SpendYear={2015}&amp;gt;}SaleAmount)&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does not change with spendyear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also put the left(YTDMonthId,4) in a textbox just to see if the value changes and it does not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 13:22:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759041#M270097</guid>
      <dc:creator />
      <dc:date>2015-02-06T13:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759042#M270098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you can set this expression in straight table without caption, this way you can see how QV is translating the $-expansion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe with&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;SpendYear={"$(=left(YTDMonth,4))"}&amp;gt;}SaleAmount)&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;SpendYear={"$(=left($(YTDMonth),4))"}&amp;gt;}SaleAmount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 13:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759042#M270098</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-02-06T13:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: $ sign issue inside set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759043#M270099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you send us what and how the value is being set for Variable: YTDMonth?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example in the textbox you used is using YTDMonthid and not YTDMonth variable. So can you please share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If YTDMonth is 201501, then does the SpendYear field also has the similar value in the same format to compare with YTDMonth?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 13:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sign-issue-inside-set-analysis/m-p/759043#M270099</guid>
      <dc:creator />
      <dc:date>2015-02-06T13:33:15Z</dc:date>
    </item>
  </channel>
</rss>

