<?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 getcurrentfield with calculated dimension name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/getcurrentfield-with-calculated-dimension-name/m-p/241496#M91910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys.&lt;/P&gt;&lt;P&gt;I have a following situation&lt;/P&gt;&lt;P&gt;inside expression, calculation logic changed depends on selected field (one from the group)&lt;/P&gt;&lt;P&gt;here is script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if(&lt;BR /&gt; getcurrentfield( PrCo_ML ) = 'Product',&lt;BR /&gt; ( SUM(Cnt ) / SUM( total generalAggregate1) ),&lt;BR /&gt; if(&lt;BR /&gt; getcurrentfield( PrCo_ML ) = 'Company',&lt;BR /&gt; ( SUM( by_Company_Cnt ) / SUM( total generalAggregate1) )&lt;BR /&gt; ,0 )&lt;BR /&gt; )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Qlikview file translated in two languages thats why under PrCo_ML placed following&lt;/P&gt;&lt;P&gt;=$(vD_Product)&lt;/P&gt;&lt;P&gt;=$(vD_Company)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;vD_Product contain this code ='Product_'&amp;amp;Language&lt;/P&gt;&lt;P&gt;=$(vD_Company) is the similar one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try compare results of the getcurrentfield( PrCo_ML ) with field name it teturn false&lt;/P&gt;&lt;P&gt;When I simply output result to the label of chart result is =$(vD_Product)&lt;/P&gt;&lt;P&gt;is it possible to compare getcurrentfield( PrCo_ML ) and find equal result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Oct 2010 08:35:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-20T08:35:55Z</dc:date>
    <item>
      <title>getcurrentfield with calculated dimension name</title>
      <link>https://community.qlik.com/t5/QlikView/getcurrentfield-with-calculated-dimension-name/m-p/241496#M91910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys.&lt;/P&gt;&lt;P&gt;I have a following situation&lt;/P&gt;&lt;P&gt;inside expression, calculation logic changed depends on selected field (one from the group)&lt;/P&gt;&lt;P&gt;here is script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= if(&lt;BR /&gt; getcurrentfield( PrCo_ML ) = 'Product',&lt;BR /&gt; ( SUM(Cnt ) / SUM( total generalAggregate1) ),&lt;BR /&gt; if(&lt;BR /&gt; getcurrentfield( PrCo_ML ) = 'Company',&lt;BR /&gt; ( SUM( by_Company_Cnt ) / SUM( total generalAggregate1) )&lt;BR /&gt; ,0 )&lt;BR /&gt; )&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Qlikview file translated in two languages thats why under PrCo_ML placed following&lt;/P&gt;&lt;P&gt;=$(vD_Product)&lt;/P&gt;&lt;P&gt;=$(vD_Company)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;vD_Product contain this code ='Product_'&amp;amp;Language&lt;/P&gt;&lt;P&gt;=$(vD_Company) is the similar one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try compare results of the getcurrentfield( PrCo_ML ) with field name it teturn false&lt;/P&gt;&lt;P&gt;When I simply output result to the label of chart result is =$(vD_Product)&lt;/P&gt;&lt;P&gt;is it possible to compare getcurrentfield( PrCo_ML ) and find equal result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 08:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/getcurrentfield-with-calculated-dimension-name/m-p/241496#M91910</guid>
      <dc:creator />
      <dc:date>2010-10-20T08:35:55Z</dc:date>
    </item>
  </channel>
</rss>

