<?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 query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840881#M1010850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Toni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currentlyi have a pivot table with:&lt;/P&gt;&lt;P&gt;dimension: period_year&lt;/P&gt;&lt;P&gt;expressions: (type of events)-&amp;gt; (ex: storeways, navigation etc) and one such formula used for this currently is:&lt;/P&gt;&lt;P&gt;LET vNbInspectionECY2YearStowaways = 'sum({'&amp;amp;chr(36)&amp;amp;'&amp;lt;FACT_TYPE={' &amp;amp; chr(39) &amp;amp; 'INSPECTION' &amp;amp; chr(39) &amp;amp; '},DeficienceMainGroupCode={' &amp;amp; chr(39) &amp;amp; 'Stowaways' &amp;amp; chr(39) &amp;amp; '},Period_Path=,Period_Year = {"&amp;gt;='&amp;amp;chr(36)&amp;amp;'(='&amp;amp;chr(36)&amp;amp;'(v_Last_Year))&amp;lt;='&amp;amp;chr(36)&amp;amp;'(=(max(Period_Year)))"} ,InspectionType={' &amp;amp; chr(39) &amp;amp; 'ECY' &amp;amp; chr(39) &amp;amp; '}&amp;gt;}NbInspection)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this will result in a pivot table with one column having the "type of event", the next two will be v_Last_Year and Period_Year respctively and these two columns will have the sum value for the corresponding&amp;nbsp; "type of events".&lt;/P&gt;&lt;P&gt;ie. the same formula used to calculate the value for both the years, cause we are taking into consideration&lt;/P&gt;&lt;P&gt;:Period_Year = {"&amp;gt;='&amp;amp;chr(36)&amp;amp;'(='&amp;amp;chr(36)&amp;amp;'(v_Last_Year))&amp;lt;='&amp;amp;chr(36)&amp;amp;'(=(max(Period_Year)))"},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but current requiremnt is for the "v_Last_Year", we need to use the filed: "Deficience&lt;STRONG&gt;Main&lt;/STRONG&gt;GroupCode"; but for "max(Period_Year), we need to use the filed: "DeficienceGroupCode";&lt;/P&gt;&lt;P&gt;so could you please suggest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2015 12:57:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-28T12:57:39Z</dc:date>
    <item>
      <title>Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840874#M1010843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could someone correct whats wrong in the below formula used:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FACT_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'INSPECTION'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Period_Path&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Period_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=$(v_Last_Year))&amp;lt;=$(=(max(Period_Year)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InspectionType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'ECY'},&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DeficienceMainGroupCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=$(=$&amp;lt;IF ( Period_Year=$(=$(v_Last_Year)),DeficienceMainGroupCode where&lt;BR /&gt;DeficienceMainGroupCode={'Stowaways'},DeficienceGroupCode where DeficienceGroupCode={'Stowaways'})&amp;gt;)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&lt;BR /&gt;&lt;BR /&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NbInspection&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 09:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840874#M1010843</guid>
      <dc:creator />
      <dc:date>2015-04-28T09:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840875#M1010844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;What are you trying to do in the highlighted part of the code?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;=Sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;FACT_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;={'INSPECTION'}, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Period_Path&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Period_Year&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;"&amp;gt;=$(v_Last_Year)&amp;lt;=$(=(max(Period_Year)))"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;InspectionType&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;={'ECY'}, &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-style: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;DeficienceMainGroupCode&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-style: inherit;"&gt;={&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style="color: #ff0000;"&gt;"=$(=$&amp;lt;IF ( Period_Year=$(=$(v_Last_Year)),DeficienceMainGroupCode where&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;DeficienceMainGroupCode={'Stowaways'},DeficienceGroupCode where DeficienceGroupCode={'Stowaways'})&amp;gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;NbInspection&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this can be done within the set analysis. May be if you explain what you are trying to achieve, we can help you with something that will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 10:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840875#M1010844</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-28T10:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840876#M1010845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello .... Basically noe i have a pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimension: period_year&lt;/P&gt;&lt;P&gt;expressions:( to calculate differnt " type of events"; ex: storeways and the formula used for this expressions is:&lt;/P&gt;&lt;P&gt;LET vNbInspectionECY2YearStowaways = 'sum({'&amp;amp;chr(36)&amp;amp;'&amp;lt;FACT_TYPE={' &amp;amp; chr(39) &amp;amp; 'INSPECTION' &amp;amp; chr(39) &amp;amp; '},DeficienceMainGroupCode={' &amp;amp; chr(39) &amp;amp; 'Stowaways' &amp;amp; chr(39) &amp;amp; '},Period_Path=,Period_Year = {"&amp;gt;='&amp;amp;chr(36)&amp;amp;'(='&amp;amp;chr(36)&amp;amp;'(v_Last_Year))&amp;lt;='&amp;amp;chr(36)&amp;amp;'(=(max(Period_Year)))"} ,InspectionType={' &amp;amp; chr(39) &amp;amp; 'ECY' &amp;amp; chr(39) &amp;amp; '}&amp;gt;}NbInspection)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, in my pivot table i will have three columns:&lt;/P&gt;&lt;P&gt;1)type of events&lt;/P&gt;&lt;P&gt;2) previous Period_Year -&amp;gt; and the corresponding value for that year for the corresponding type of event will be displayed in that&lt;/P&gt;&lt;P&gt;3)Period_Year -&amp;gt;&amp;nbsp; -&amp;gt; and the corresponding value for that year for the corresponding type of event will be displayed in that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, with one formula being used for each " type of events", we get two values (one for the previous year and one for the current year);&lt;/P&gt;&lt;P&gt;but now i want to use " DeficienceGroupCode" for the previous year and "DeficienceMainGroupCode" while calculating the current year; hence trying to use the formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; color: #575757; font-size: 10pt;"&gt;=Sum&lt;/SPAN&gt;({$&amp;lt;FACT_TYPE={'INSPECTION'}, Period_Path=, &lt;SPAN style="font-family: arial, helvetica, sans-serif; color: #575757; font-size: 10pt;"&gt;Period_Year = {"&amp;gt;=$(v_Last_Year)&amp;lt;=$(=(max(Period_Year)))"}, InspectionType={'ECY'}, &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;DeficienceMainGroupCode&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #ff0000;"&gt;={&lt;/STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt;"=$(=$&amp;lt;IF ( Period_Year=$(=$(v_Last_Year)),DeficienceMainGroupCode where&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;DeficienceMainGroupCode={'Stowaways'},DeficienceGroupCode where DeficienceGroupCode={'Stowaways'})&amp;gt;)&lt;/STRONG&gt;"&lt;/SPAN&gt;}&amp;gt;}NbInspection&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; color: #575757; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 10:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840876#M1010845</guid>
      <dc:creator />
      <dc:date>2015-04-28T10:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840877#M1010846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Maybe try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;=Sum&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;({$&amp;lt;FACT_TYPE={'INSPECTION'}, Period_Path=, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Period_Year = {"&amp;gt;=$(v_Last_Year)&amp;lt;=$(=(max(Period_Year)))"}, InspectionType={'ECY'},&lt;SPAN style="color: #575757;"&gt; &lt;SPAN style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;DeficienceMainGroupCode &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;=&lt;SPAN style="color: #808080;"&gt; p({&amp;lt;Period_Year = {"$(=Max(Period_Year))"}, DeficienceMainGroupCode&amp;nbsp; = {'Stowaways'}&amp;gt;}), &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;DeficienceGroupCode = p({&amp;lt;Period_Year = {"$(v_Last_Year)"}, DeficienceGroupCode = &lt;SPAN style="color: #575757;"&gt;{'&lt;SPAN style="color: #808080;"&gt;Stowaways&lt;/SPAN&gt;'}&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt;&amp;gt;})&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #575757;"&gt;&lt;SPAN style="color: #575757;"&gt;}&amp;gt;}&lt;/SPAN&gt;NbInspection&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt;"&gt;&lt;STRONG&gt;);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 10:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840877#M1010846</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-28T10:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840878#M1010847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ..&lt;/P&gt;&lt;P&gt;thanks for your response, but still there seems to be no luck with&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FACT_TYPE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'INSPECTION'}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Period_Path&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Period_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(v_Last_Year)&amp;lt;=$(=(max(Period_Year)))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;InspectionType&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'ECY'},&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DeficienceMainGroupCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Period_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=Max(Period_Year))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DeficienceMainGroupCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Stowaways'}&amp;gt;}),&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DeficienceGroupCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;p&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Period_Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(v_Last_Year)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DeficienceGroupCode&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Stowaways'}&amp;gt;})&lt;BR /&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NbInspection&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;no values are being shown.. and there seems to be no separate coulmns for the previous and current year as before.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 11:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840878#M1010847</guid>
      <dc:creator />
      <dc:date>2015-04-28T11:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840879#M1010848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be a lot easier to try and understand what you are trying to accomplish if you provided a sample QVW. It is quite impossible make any reasonable assumption base don a expression and details on what result you get and what you expect. A sample QVW would for example also clarify what you are expanding from your variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have a counter question for you. Where have you seen that a construction like this would work in QlikView? Personally I can not even begin to understand what you are trying to do with this syntax.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=$(=$&amp;lt;IF ( Period_Year=$(=$(v_Last_Year))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My suggestion is that you start over with a basic aggregation. Then add a simple set expression. Add static value for your set modifiers. When your static values work, change them one by one with your "dynamic" dollar expansions. When something fails rollback and review what might be wrong. Don't just dump everything in your expression at once, unless you know it will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 11:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840879#M1010848</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-04-28T11:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840880#M1010849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree, a sample here would be very useful to solve your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840880#M1010849</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-28T12:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840881#M1010850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Toni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;currentlyi have a pivot table with:&lt;/P&gt;&lt;P&gt;dimension: period_year&lt;/P&gt;&lt;P&gt;expressions: (type of events)-&amp;gt; (ex: storeways, navigation etc) and one such formula used for this currently is:&lt;/P&gt;&lt;P&gt;LET vNbInspectionECY2YearStowaways = 'sum({'&amp;amp;chr(36)&amp;amp;'&amp;lt;FACT_TYPE={' &amp;amp; chr(39) &amp;amp; 'INSPECTION' &amp;amp; chr(39) &amp;amp; '},DeficienceMainGroupCode={' &amp;amp; chr(39) &amp;amp; 'Stowaways' &amp;amp; chr(39) &amp;amp; '},Period_Path=,Period_Year = {"&amp;gt;='&amp;amp;chr(36)&amp;amp;'(='&amp;amp;chr(36)&amp;amp;'(v_Last_Year))&amp;lt;='&amp;amp;chr(36)&amp;amp;'(=(max(Period_Year)))"} ,InspectionType={' &amp;amp; chr(39) &amp;amp; 'ECY' &amp;amp; chr(39) &amp;amp; '}&amp;gt;}NbInspection)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so this will result in a pivot table with one column having the "type of event", the next two will be v_Last_Year and Period_Year respctively and these two columns will have the sum value for the corresponding&amp;nbsp; "type of events".&lt;/P&gt;&lt;P&gt;ie. the same formula used to calculate the value for both the years, cause we are taking into consideration&lt;/P&gt;&lt;P&gt;:Period_Year = {"&amp;gt;='&amp;amp;chr(36)&amp;amp;'(='&amp;amp;chr(36)&amp;amp;'(v_Last_Year))&amp;lt;='&amp;amp;chr(36)&amp;amp;'(=(max(Period_Year)))"},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but current requiremnt is for the "v_Last_Year", we need to use the filed: "Deficience&lt;STRONG&gt;Main&lt;/STRONG&gt;GroupCode"; but for "max(Period_Year), we need to use the filed: "DeficienceGroupCode";&lt;/P&gt;&lt;P&gt;so could you please suggest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 12:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840881#M1010850</guid>
      <dc:creator />
      <dc:date>2015-04-28T12:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840882#M1010851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="expression.jpg.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85247_expression.jpg.png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 14:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840882#M1010851</guid>
      <dc:creator />
      <dc:date>2015-04-28T14:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis query</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840883#M1010852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When looking at cases like this it is very valuable to be able to look at the data and evaluate possible solution in the QlikView desktop client. An image does not help me in assisting you very much, as I do not have time to enter all your details into a QVW in order to analyze your question/problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In additional to the sample QVW, please provide details on the expected result. For example assume your expression is accurate, what result (numerical values) are you expecting to see int he chart? This will help any one looking at the question to validate their suggestion actually addresses your question properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 03:41:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-query/m-p/840883#M1010852</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2015-04-30T03:41:55Z</dc:date>
    </item>
  </channel>
</rss>

