<?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: Year on Year Comparison KPI Text Box using Set Expressions in Set Analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-on-Year-Comparison-KPI-Text-Box-using-Set-Expressions-in/m-p/73719#M775141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Count({&amp;lt;Date_Year = {"$(=Max(Date_Year))"}&amp;gt;} DISTINCT [operators])/Count({&amp;lt;Date_Year = {"$(=Max(Date_Year))"}&amp;gt;} DISTINCT [associates])),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-(Count({&amp;lt;Date_Year = {"$(=Max(Date_Year)-1)"}&amp;gt;} DISTINCT [operators])/Count({&amp;lt;Date_Year = {"$(=Max(Date_Year)-1)"}&amp;gt;} DISTINCT [associates])))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2018 20:58:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-05-08T20:58:28Z</dc:date>
    <item>
      <title>Year on Year Comparison KPI Text Box using Set Expressions in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Year-on-Year-Comparison-KPI-Text-Box-using-Set-Expressions-in/m-p/73718#M775140</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 am fairly new to qlikview (been 2 weeks), I have a question regarding year on year comparison KPI text box, where I use set expressions in the set analysis rather than a measure field that already exists for which I always get an error and no result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;Date_Year &lt;/STRONG&gt;which is 2016, 2017, 2018....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The set expression I use is calculated as &lt;STRONG&gt;count(distinct [operators])/count (distinct [associates]) &lt;/STRONG&gt;which is in terms of&amp;nbsp; percentage ('#.## %').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need an output in text box such that, it gives the difference for current year in comparison with previous year (eg. if 90% for 2018, 80% for 2017, it should give 10% in green as increase or if negative, red as decrease like below image).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;IMG alt="%.PNG" class="jive-image image-1" src="/legacyfs/online/201881_%.PNG" style="font-size: 10pt; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Please help since I have found blogs and discussions, but none that utilize set expressions in set analysis. IF ANY ALTERNATIVES OTHER THAN SET ANALYSIS, please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-on-Year-Comparison-KPI-Text-Box-using-Set-Expressions-in/m-p/73718#M775140</guid>
      <dc:creator>haneeshmarella</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Year on Year Comparison KPI Text Box using Set Expressions in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Year-on-Year-Comparison-KPI-Text-Box-using-Set-Expressions-in/m-p/73719#M775141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Count({&amp;lt;Date_Year = {"$(=Max(Date_Year))"}&amp;gt;} DISTINCT [operators])/Count({&amp;lt;Date_Year = {"$(=Max(Date_Year))"}&amp;gt;} DISTINCT [associates])),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-(Count({&amp;lt;Date_Year = {"$(=Max(Date_Year)-1)"}&amp;gt;} DISTINCT [operators])/Count({&amp;lt;Date_Year = {"$(=Max(Date_Year)-1)"}&amp;gt;} DISTINCT [associates])))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 20:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-on-Year-Comparison-KPI-Text-Box-using-Set-Expressions-in/m-p/73719#M775141</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-08T20:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Year on Year Comparison KPI Text Box using Set Expressions in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Year-on-Year-Comparison-KPI-Text-Box-using-Set-Expressions-in/m-p/73720#M775142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Sunny. @&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me the same for month vs previous month, week vs previous week, and day vs previous day?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of Date_year, these dimensions are Date_Month, Date_Week, Date_Day &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, Date_Day = Day(Date) where Date is MM/DD/YYYY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 21:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-on-Year-Comparison-KPI-Text-Box-using-Set-Expressions-in/m-p/73720#M775142</guid>
      <dc:creator>haneeshmarella</dc:creator>
      <dc:date>2018-05-08T21:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Year on Year Comparison KPI Text Box using Set Expressions in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Year-on-Year-Comparison-KPI-Text-Box-using-Set-Expressions-in/m-p/73721#M775143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Month&lt;/P&gt;&lt;P&gt;Use MonthYear field which is created like this in the scrip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(MonthStart(Date), 'MMM-YYYY') as Date_MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;RangeSum(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(Count({&amp;lt;Date_MonthYear = {"$(=Date(Max(Date_Month), 'MMM-YYYY'))"}&amp;gt;} DISTINCT [operators])/Count({&amp;lt;Date_Year = {"$(=&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;Date(&lt;/STRONG&gt;Max(Date_Year)&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;, 'MMM-YYYY')&lt;/STRONG&gt;)"}&amp;gt;} DISTINCT [associates])),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;-(Count({&amp;lt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;Date_MonthYear&lt;/STRONG&gt; = {"$(=Date(MonthStart(Max(Date_Year),-1), 'MMM-YYYY'))"}&amp;gt;} DISTINCT [operators])/Count(&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;{&amp;lt;&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;Date_MonthYear&lt;/STRONG&gt; = {"$(=Date(MonthStart(Max(Date_Year),-1), 'MMM-YYYY'))"}&amp;gt;}&lt;/STRONG&gt; DISTINCT [associates])))&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Similarly, you can do the same using WeekStart() function to create a Date_WeekYear field and I would just use Date for Day comparison &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 02:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-on-Year-Comparison-KPI-Text-Box-using-Set-Expressions-in/m-p/73721#M775143</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-09T02:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Year on Year Comparison KPI Text Box using Set Expressions in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Year-on-Year-Comparison-KPI-Text-Box-using-Set-Expressions-in/m-p/73722#M775144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does wonders. Thanks a ton!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2018 13:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-on-Year-Comparison-KPI-Text-Box-using-Set-Expressions-in/m-p/73722#M775144</guid>
      <dc:creator>haneeshmarella</dc:creator>
      <dc:date>2018-05-09T13:21:23Z</dc:date>
    </item>
  </channel>
</rss>

