<?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: Set Expression Working in QlikView, But Not in Qlik Sense in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968843#M331920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this community post help you further?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This explains how you can take the current year for example and the year previous&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/685338"&gt;Set Analysis for Current week &amp;amp;amp; previous week&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2015 14:01:37 GMT</pubDate>
    <dc:creator>mjm</dc:creator>
    <dc:date>2015-09-30T14:01:37Z</dc:date>
    <item>
      <title>Set Expression Working in QlikView, But Not in Qlik Sense</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968840#M331917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;I am trying to create a Balance Sheet.&amp;nbsp; I am using the following expression to aggregate (i.e. as of balance) the amounts per GL number.&amp;nbsp; The following set expression is working in QlikView, but it does not work in Qlik Sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff; font-size: 12pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;Year&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;"&amp;lt;=$(vDate)"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;} &lt;/SPAN&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;I set the variable in Qlik Sense with the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 12pt;"&gt;SET vDate = [Year];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 12pt;"&gt;I know the variable is &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;working&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt; in Qlik Sense &lt;/SPAN&gt;&lt;SPAN style="line-height: 19.5px;"&gt;because&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt; I created a straight &lt;/SPAN&gt;&lt;SPAN style="line-height: 19.5px;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt; with the vDate variable as a &lt;/SPAN&gt;&lt;SPAN style="line-height: 19.5px;"&gt;dimension (see attached screen shot). &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 19.5px; color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 19.5px; color: #000000; font-size: 12pt;"&gt;Has anyone seen this issue?&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 19.5px; color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 19.5px; color: #000000; font-size: 12pt;"&gt;Thank you in advance for any assistance.&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 12:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968840#M331917</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2015-09-30T12:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Working in QlikView, But Not in Qlik Sense</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968841#M331918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alec,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikSense and Qlik View are based on the same engine so the same script should work in both products. From lookin at your screenshot you have a field in there called FiscalYear. I would suggest then that the set analysis code won't work as Year doesn't exist but is actually FiscalYear. Have you tried the same code but with FiscalYear instead, e.g:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0433ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;FiscalYear&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;={&lt;/SPAN&gt;"&amp;lt;=$(vDate)"&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #000000;"&gt;}&amp;gt;} &lt;/SPAN&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;I believe this will help. Please mark as helpful if this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Thanks,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 13:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968841#M331918</guid>
      <dc:creator>mjm</dc:creator>
      <dc:date>2015-09-30T13:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Working in QlikView, But Not in Qlik Sense</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968842#M331919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the response.&amp;nbsp; Fiscal Year is the label of the actual field called Year.&amp;nbsp; When I changed the expression to the below, the straight table does work.&amp;nbsp; However, the set expression below is only aggregating the year selected in the filter.&amp;nbsp; It is supposed to aggregate all years prior to the selected year (i.e. Filter on 2014, the years to aggregate should be 2010-2014).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0433ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;FiscalYear&lt;SPAN style="font-style: inherit; font-family: inherit; color: #000000;"&gt;={&lt;/SPAN&gt;"&amp;lt;=$(vDate)"&lt;SPAN style="font-style: inherit; font-family: inherit; color: #000000;"&gt;}&amp;gt;} &lt;/SPAN&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Very strange...&amp;nbsp; My original expression works fine in QlikView.&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 13:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968842#M331919</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2015-09-30T13:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Working in QlikView, But Not in Qlik Sense</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968843#M331920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this community post help you further?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This explains how you can take the current year for example and the year previous&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/685338"&gt;Set Analysis for Current week &amp;amp;amp; previous week&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 14:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968843#M331920</guid>
      <dc:creator>mjm</dc:creator>
      <dc:date>2015-09-30T14:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Working in QlikView, But Not in Qlik Sense</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968844#M331921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it will.&amp;nbsp; Thank you again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 14:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968844#M331921</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2015-09-30T14:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Working in QlikView, But Not in Qlik Sense</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968845#M331922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Thanks Alex. Please can you mark this response as helpful if you consider this to be resolved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 14:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968845#M331922</guid>
      <dc:creator>mjm</dc:creator>
      <dc:date>2015-09-30T14:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Working in QlikView, But Not in Qlik Sense</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968846#M331923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Alex, but I actually also meant to ask you to mark this as resolved if you consider it to be resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 15:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968846#M331923</guid>
      <dc:creator>mjm</dc:creator>
      <dc:date>2015-09-30T15:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression Working in QlikView, But Not in Qlik Sense</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968847#M331924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alec, for the expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff; font-size: 12pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;Year&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;"&amp;lt;=$(vDate)"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;} &lt;/SPAN&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;and the variable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;SET vDate = [Year];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;It will return&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;SPAN style="color: #0433ff; font-size: 12pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;Year&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;"&amp;lt;="&lt;SPAN style="color: #000000;"&gt;}&amp;gt;} &lt;/SPAN&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;) //If no Year is selected (there is more than one value, so returns Null())&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;SPAN style="color: #0433ff; font-size: 12pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #000000;"&gt;({$&amp;lt;&lt;/SPAN&gt;Year&lt;SPAN style="color: #000000;"&gt;={&lt;/SPAN&gt;"&amp;lt;=2015"&lt;SPAN style="color: #000000;"&gt;}&amp;gt;} &lt;/SPAN&gt;SalesAmount&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;) // If Year 2015 is selected&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;You can change your variable to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;SET vDate = "=Max([Year])";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Maybe your QV app has a trigger to select one year on open &lt;SPAN style="color: #000000; font-size: 12pt;"&gt;(or only load one value for Year)&lt;/SPAN&gt; and that makes your QV expression works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;Hope this helps.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 15:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-Working-in-QlikView-But-Not-in-Qlik-Sense/m-p/968847#M331924</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-09-30T15:20:26Z</dc:date>
    </item>
  </channel>
</rss>

