<?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: Calculated Dimension field error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-field-error/m-p/1154198#M893613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2016 09:50:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-08-12T09:50:54Z</dc:date>
    <item>
      <title>Calculated Dimension field error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-field-error/m-p/1154195#M893610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to determine a dimension field based on a calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value 1 gives the count when the FLAG dimension is COMP&lt;/P&gt;&lt;P&gt;The value 2 gives the count when&amp;nbsp; the FLAG dimension is NO COMP.&lt;/P&gt;&lt;P&gt;The value 3 gives the total number of COUNT for the selected period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the value 2 is more than 10%, then the dimension should be simply be&amp;nbsp; NO_COMP&amp;nbsp; and ignore COMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to calculate a dimension field based on this, it gives me an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please any one can hint me the error&amp;nbsp; or say me the way to achieve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Jegadish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Sunny, &lt;/P&gt;&lt;P&gt;I have added an example as requested&lt;/P&gt;&lt;P&gt;Jegadish&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/Calculated-Dimension-field-error/m-p/1154195#M893610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension field error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-field-error/m-p/1154196#M893611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to wrap your expression around with the Aggr() function and use the dimension you are doing the two counts against&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 10:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-field-error/m-p/1154196#M893611</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-09T10:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension field error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-field-error/m-p/1154197#M893612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sunny, thanks for your suggestion,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this sentence,&amp;nbsp; it gives me an error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLAG IS THE DIMENSION, it contains two values 'COMP &amp;amp; NON COMP')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF THE COUNT OF NON_COMP is superior to 10% then the DIMENSION FLAG should be considered as NON COMP otherwise it gets the value of the DIMENSION)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Aggr(FLAG, count(distinct {&amp;lt;FLAG = {'NO COMP'}&amp;gt;})/count(distinct {&amp;lt;FLAG = {'NO COMP','COMP'}&amp;gt;}) &amp;gt; 10, 'NO COMP', FLAG))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your kind help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 07:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-field-error/m-p/1154197#M893612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-12T07:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension field error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-field-error/m-p/1154198#M893613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 09:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-field-error/m-p/1154198#M893613</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-12T09:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension field error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-field-error/m-p/1154199#M893614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess we have managed to resolve this outside of Qlik Community, would you be able to close this thread by providing a jist of what was needed and closing this thread by marking either your own response as correct or marking assumed answer.&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>Fri, 12 Aug 2016 14:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-field-error/m-p/1154199#M893614</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-12T14:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension field error</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-field-error/m-p/1154200#M893615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Aggr(If(Count(DISTINCT {&amp;lt;FLAG = {'NO COMP'}&amp;gt;}FLAG)/Count(DISTINCT {&amp;lt;FLAG = {'NO COMP','COMP'}&amp;gt;}FLAG) &amp;gt; 0.10, 'NO COMP', FLAG), DEPADR_PAYS_LIB, MAG_LIBELLE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 14:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-field-error/m-p/1154200#M893615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-12T14:31:55Z</dc:date>
    </item>
  </channel>
</rss>

