<?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: Variable not working in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-not-working-in-Set-Analysis/m-p/1675614#M449744</link>
    <description>&lt;P&gt;Thanks for responding.. I tried modifying my expression but it still returns 0.&lt;/P&gt;&lt;P&gt;My '&lt;SPAN&gt;PreviousLocalYear'&amp;nbsp;&lt;/SPAN&gt;variable will contain year values like 2019, 2018 etc.,&amp;nbsp;The&lt;SPAN&gt;LocalFiscal_YearQlik column in&amp;nbsp;MasterCalendarDateStartedRC also contain&amp;nbsp;year values like 2019, 2018. I am trying to retrieve values from&amp;nbsp;MasterCalendarDateStartedRC table based on the year value in my variable.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2020 00:50:10 GMT</pubDate>
    <dc:creator>nazirhussain</dc:creator>
    <dc:date>2020-02-14T00:50:10Z</dc:date>
    <item>
      <title>Variable not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-working-in-Set-Analysis/m-p/1675579#M449742</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using variable in my expression which has a set analysis in it. However it is not working.&lt;/P&gt;&lt;P&gt;The below expression works when I hardcode date in it.&lt;/P&gt;&lt;P&gt;count(distinct {&amp;lt;[MasterCalendarDateStartedRC.LocalFiscal_YearQlik]={'2018'}&amp;gt;} [ReportCard.studentid])&lt;/P&gt;&lt;P&gt;However, this does not.&lt;/P&gt;&lt;P&gt;count(distinct {&amp;lt;[MasterCalendarDateStartedRC.LocalFiscal_YearQlik]={'$(PreviousLocalYear)'}&amp;gt;} [ReportCard.studentid]).&lt;/P&gt;&lt;P&gt;My variable has proper value in it. I am able to see the proper year in my variable. However, the above expression always returns 0. Not sure, what am doing wrong.&lt;/P&gt;&lt;P&gt;Please help. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 21:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-working-in-Set-Analysis/m-p/1675579#M449742</guid>
      <dc:creator>nazirhussain</dc:creator>
      <dc:date>2020-02-13T21:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-working-in-Set-Analysis/m-p/1675588#M449743</link>
      <description>&lt;P&gt;You did not tell&amp;nbsp; us the content of your variable. Is it an expression?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adjusting your expression to this:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;&lt;SPAN&gt;count(distinct {&amp;lt;[MasterCalendarDateStartedRC.LocalFiscal_YearQlik]={'$(&lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/FONT&gt;PreviousLocalYear)'}&amp;gt;} [ReportCard.studentid])&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 22:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-working-in-Set-Analysis/m-p/1675588#M449743</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-13T22:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-working-in-Set-Analysis/m-p/1675614#M449744</link>
      <description>&lt;P&gt;Thanks for responding.. I tried modifying my expression but it still returns 0.&lt;/P&gt;&lt;P&gt;My '&lt;SPAN&gt;PreviousLocalYear'&amp;nbsp;&lt;/SPAN&gt;variable will contain year values like 2019, 2018 etc.,&amp;nbsp;The&lt;SPAN&gt;LocalFiscal_YearQlik column in&amp;nbsp;MasterCalendarDateStartedRC also contain&amp;nbsp;year values like 2019, 2018. I am trying to retrieve values from&amp;nbsp;MasterCalendarDateStartedRC table based on the year value in my variable.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 00:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-working-in-Set-Analysis/m-p/1675614#M449744</guid>
      <dc:creator>nazirhussain</dc:creator>
      <dc:date>2020-02-14T00:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Variable not working in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-working-in-Set-Analysis/m-p/1683880#M450265</link>
      <description>&lt;P&gt;Best I can offer is the following Design Blog post on Set Analysis, and I will include the base Design Blog URL after that in case you want to search for other posts that may be helpful.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The other post that may be helpful would be the following:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-working-in-Set-Analysis/m-p/1683880#M450265</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-03-11T16:19:59Z</dc:date>
    </item>
  </channel>
</rss>

