<?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: Adding a calculated field to a dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311577#M836664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=ValueList('Pages','Revenue','Rev per page')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Pick(match(ValueList('Pages','Revenue','Rev per page'),'Pages','Revenue','Rev per page'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Type={'Pages'}&amp;gt;}Amount),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Type={'Revenue'}&amp;gt;}Amount),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Type={'Pages'}&amp;gt;}Amount)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Type={'Revenue'}&amp;gt;}Amount))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 May 2017 11:04:13 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2017-05-23T11:04:13Z</dc:date>
    <item>
      <title>Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311569#M836656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this data-set where I have some dimensions. Within one of those dimensions I want add a calculated field, based on two fields in that dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please se attached example. Trying to do it with Left Join and Resident in the script function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible in any way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Stefan&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/Adding-a-calculated-field-to-a-dimension/m-p/1311569#M836656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311570#M836657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So basically I want to add another field under the dimension "Type", which is called "Rev per page".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 12:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311570#M836657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-22T12:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311571#M836658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create synthetics dimension using valuelist function or create inline table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Data:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD Media, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C:/example.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, Table is Ark1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Type:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;TypeNew&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Pages&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Revenue&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Rev per page&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Create chart&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Dimension:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;TypeNew&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Expression:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Pick(match(&lt;EM style="font-size: 13.3333px;"&gt;TypeNew,'&lt;EM style="font-size: 13.3333px;"&gt;Pages&lt;/EM&gt;','&lt;EM style="font-size: 13.3333px;"&gt;Revenue&lt;/EM&gt;','&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Rev per page&lt;/EM&gt;'),&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM style="font-size: 13.3333px;"&gt;sum({&amp;lt;Type={'Pages'}&amp;gt;}Amount),&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;sum({&amp;lt;Type={'Revenue'}&amp;gt;}Amount),&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;sum({&amp;lt;Type={'Pages'}&amp;gt;}Amount)/&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;sum({&amp;lt;Type={'Revenue'}&amp;gt;}Amount) )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 13:37:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311571#M836658</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-05-22T13:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311572#M836659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kushal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either I'm doing something wrong or it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I'm Copying above script into my qvd file, it doesn't give me the right answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It just says "Error in calculation" and just Sum alle the numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 06:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311572#M836659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-23T06:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311573#M836660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to figure what I'm doing wrong, but I can't seem figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone else got some ideas how to solve this? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 10:39:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311573#M836660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-23T10:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311574#M836661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please share sample app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 10:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311574#M836661</guid>
      <dc:creator>qlikview979</dc:creator>
      <dc:date>2017-05-23T10:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311575#M836662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hej Mahesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 10:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311575#M836662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-23T10:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311576#M836663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please share the&amp;nbsp; sample source&amp;nbsp; file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 10:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311576#M836663</guid>
      <dc:creator>qlikview979</dc:creator>
      <dc:date>2017-05-23T10:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311577#M836664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=ValueList('Pages','Revenue','Rev per page')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Pick(match(ValueList('Pages','Revenue','Rev per page'),'Pages','Revenue','Rev per page'),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Type={'Pages'}&amp;gt;}Amount),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Type={'Revenue'}&amp;gt;}Amount),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Type={'Pages'}&amp;gt;}Amount)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;Type={'Revenue'}&amp;gt;}Amount))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 11:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311577#M836664</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-05-23T11:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311578#M836665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes of course &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 11:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311578#M836665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-23T11:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311579#M836667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried this? It's working for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 11:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311579#M836667</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-05-23T11:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311580#M836669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked exactly like I wanted too &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot. You just saved me a lot of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 12:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311580#M836669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-23T12:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a calculated field to a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311581#M836671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 13:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-calculated-field-to-a-dimension/m-p/1311581#M836671</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-05-23T13:02:46Z</dc:date>
    </item>
  </channel>
</rss>

