<?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 Analysis with Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/951630#M645139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of typo's, but it still didn't work.&amp;nbsp; Tried ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; (Sum({&amp;lt;Sick_Type={'STS'},Month_Yr={'$(=(PreviousMonth)-1)'}&amp;gt;} ((Absence_FTE)))/Sum({&amp;lt;Sick_Type={'STS'},Month_Yr={'$(=(PreviousMonth)-1)'&amp;gt;} ((Avail_FTE))))&lt;/P&gt;&lt;P&gt;&amp;nbsp; +&lt;/P&gt;&lt;P&gt;&amp;nbsp; (Sum({&amp;lt;Sick_Type={'LTS'},Month_Yr={'$(=(PreviousMonth)-1)'}&amp;gt;} ((Absence_FTE)))/Sum({&amp;lt;Sick_Type={'LTS'},Month_Yr={'$(=(PreviousMonth)-1)'&amp;gt;} ((Avail_FTE))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2015 14:22:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-06T14:22:17Z</dc:date>
    <item>
      <title>Set Analysis with Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/951628#M645137</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 created a variable to determine the previous month (&lt;EM&gt;PreviousMonth&lt;/EM&gt;).&amp;nbsp; &lt;/P&gt;&lt;P&gt;I can create a chart using the variable, but I want to do this as set analysis in the chart.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Please can anyone help me with the code.&amp;nbsp; My current expression is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;If(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;MonthName(Date(Month_Yr))=MonthName(Date(PreviousMonth-1)),&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; (Sum({&amp;lt;Sick_Type={'STS'}&amp;gt;} ((Absence_FTE)))/Sum({&amp;lt;Sick_Type={'STS'}&amp;gt;} ((Avail_FTE))))+ &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; (Sum({&amp;lt;Sick_Type={'LTS'}&amp;gt;} ((Absence_FTE)))/Sum({&amp;lt;Sick_Type={'LTS'}&amp;gt;} ((Avail_FTE))))&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 14:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/951628#M645137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-06T14:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/951629#M645138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;you can't use expressions in set analysis in the left side of the equation &lt;/P&gt;&lt;P&gt;so if you want to use monthname you'll need to create a field with this data in your script &lt;/P&gt;&lt;P&gt;but maybe this will work&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; (Sum({&amp;lt;Sick_Type={'STS'},&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Month_Yr={"$(=(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PreviousMonth)-1)"}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;} ((Absence_FTE)))/Sum({&amp;lt;Sick_Type={'STS'}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Month_Yr={"$(=(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PreviousMonth)-1)&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;} ((Avail_FTE))))+&lt;/P&gt;&lt;P style="padding: 0 0 0 30px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; (Sum({&amp;lt;Sick_Type={'LTS'}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Month_Yr={"$(=(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PreviousMonth)-1)&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;} ((Absence_FTE)))/Sum({&amp;lt;Sick_Type={'LTS'}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Month_Yr={"$(=(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PreviousMonth)-1)&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;} ((Avail_FTE))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 14:11:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/951629#M645138</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2015-11-06T14:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis with Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/951630#M645139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of typo's, but it still didn't work.&amp;nbsp; Tried ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; (Sum({&amp;lt;Sick_Type={'STS'},Month_Yr={'$(=(PreviousMonth)-1)'}&amp;gt;} ((Absence_FTE)))/Sum({&amp;lt;Sick_Type={'STS'},Month_Yr={'$(=(PreviousMonth)-1)'&amp;gt;} ((Avail_FTE))))&lt;/P&gt;&lt;P&gt;&amp;nbsp; +&lt;/P&gt;&lt;P&gt;&amp;nbsp; (Sum({&amp;lt;Sick_Type={'LTS'},Month_Yr={'$(=(PreviousMonth)-1)'}&amp;gt;} ((Absence_FTE)))/Sum({&amp;lt;Sick_Type={'LTS'},Month_Yr={'$(=(PreviousMonth)-1)'&amp;gt;} ((Avail_FTE))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 14:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-with-Variable/m-p/951630#M645139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-06T14:22:17Z</dc:date>
    </item>
  </channel>
</rss>

