<?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: Is there a restriction for calculated dimension? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-there-a-restriction-for-calculated-dimension/m-p/119084#M765486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will never get to that point because "France" will always return a match in the first If(), so it will always stop at 'F+I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you should use If() instead of Match():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Customer = 'France' AND Type = 'Distributor',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'F Distributor',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Customer = Italy OR Customer = 'Italy',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'F+I',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Others'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(check syntax, wrote from memory).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the sake of performance and maintenance, I try to reduce as much as possible any calculated dimensions, creating new fields or flags if I need so in the script. You could also apply this logic in the LOAD script, store it as a different field and use it in the chart instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2018 15:16:49 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2018-07-06T15:16:49Z</dc:date>
    <item>
      <title>Is there a restriction for calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-a-restriction-for-calculated-dimension/m-p/119083#M765485</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'm new to QlikView and I would like if somebody could explain my problem to me. &lt;/P&gt;&lt;P&gt;I want to create specific columns in calculated dimension based on some rules.&lt;/P&gt;&lt;P&gt;If I use fields which are unique everything works. But if I use the field again with condition it doesn't work.&lt;/P&gt;&lt;P&gt;Does it mean that in dimension you can select field only once?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see below. If I run this I get only 3 columns. One for F+I, second for Distributor and third for Others.&lt;/P&gt;&lt;P&gt;F Distributor won't show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customer&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'France', 'Italy'), 'F+I',&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(Type, 'Distributor'),'Distributor',&lt;BR /&gt; if(Match(Customer, 'France') and(Type = 'Distributor'),'F Distributor','Others'))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-a-restriction-for-calculated-dimension/m-p/119083#M765485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a restriction for calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Is-there-a-restriction-for-calculated-dimension/m-p/119084#M765486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will never get to that point because "France" will always return a match in the first If(), so it will always stop at 'F+I'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you should use If() instead of Match():&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Customer = 'France' AND Type = 'Distributor',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'F Distributor',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Customer = Italy OR Customer = 'Italy',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'F+I',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Others'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(check syntax, wrote from memory).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the sake of performance and maintenance, I try to reduce as much as possible any calculated dimensions, creating new fields or flags if I need so in the script. You could also apply this logic in the LOAD script, store it as a different field and use it in the chart instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 15:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-there-a-restriction-for-calculated-dimension/m-p/119084#M765486</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2018-07-06T15:16:49Z</dc:date>
    </item>
  </channel>
</rss>

