<?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 to compare one field value with another in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-compare-one-field-value-with-another/m-p/476013#M177765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think It should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;scenario={$(Only([Applicable Scenario]))}&amp;gt;}TOTAL&amp;lt;scenario&amp;gt; measure_value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where your dimensions should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country, Year, measure and scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I think it would be better choice to calculate that field in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 13:37:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-09-03T13:37:22Z</dc:date>
    <item>
      <title>Set analysis to compare one field value with another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-compare-one-field-value-with-another/m-p/476012#M177764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a small requirement to write set analysis expression to get the values by comparing one field value with another.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/46135_Screenshot.PNG" style="width: 620px; height: 280px;" /&gt;&lt;BR /&gt;For the fields country_id,year_id,measure_id,scenario_id I need to derive the measure based on the measure_value.&lt;/P&gt;&lt;P&gt;eg: &lt;STRONG&gt;for Country=25,year=11,measure=32,scenario=1,2,3&lt;/STRONG&gt; the applicable scenario is 1 . Hence the derived measure value should be 12 which is the measure value for scenario 1.&lt;/P&gt;&lt;P&gt;Similarly for country=25,year=114,measure=32,scenario=1,2,3 the applicable scenario is 2. Hence the derived measure value should be 27 which is the measure value for scenario2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me to write the expression to derive the measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Surendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 13:29:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-compare-one-field-value-with-another/m-p/476012#M177764</guid>
      <dc:creator />
      <dc:date>2013-09-03T13:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to compare one field value with another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-compare-one-field-value-with-another/m-p/476013#M177765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think It should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;scenario={$(Only([Applicable Scenario]))}&amp;gt;}TOTAL&amp;lt;scenario&amp;gt; measure_value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where your dimensions should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country, Year, measure and scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I think it would be better choice to calculate that field in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 13:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-compare-one-field-value-with-another/m-p/476013#M177765</guid>
      <dc:creator />
      <dc:date>2013-09-03T13:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to compare one field value with another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-compare-one-field-value-with-another/m-p/476014#M177766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No IOSU,&lt;/P&gt;&lt;P&gt;The expression didn't return any thing&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Surendra&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 13:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-compare-one-field-value-with-another/m-p/476014#M177766</guid>
      <dc:creator />
      <dc:date>2013-09-03T13:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to compare one field value with another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-compare-one-field-value-with-another/m-p/476015#M177767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My fault. It was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({&amp;lt;scenario={$(=Max([Applicable Scenario]))}&amp;gt;}TOTAL&amp;lt;country, year, measure&amp;gt; measure_value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 14:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-compare-one-field-value-with-another/m-p/476015#M177767</guid>
      <dc:creator />
      <dc:date>2013-09-03T14:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis to compare one field value with another</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-to-compare-one-field-value-with-another/m-p/476016#M177768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 14:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-to-compare-one-field-value-with-another/m-p/476016#M177768</guid>
      <dc:creator />
      <dc:date>2013-09-03T14:09:02Z</dc:date>
    </item>
  </channel>
</rss>

