<?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: Add expression based on single dimension in multi-dimensional table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436041#M1164451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you use a personel edition what you do is using the excel sheet load the data into one application. And then take a straight table , in that give product and users as dimensions and in the&amp;nbsp; two expressions &lt;/P&gt;&lt;P&gt;1. Avg(Price0&lt;/P&gt;&lt;P&gt;2.Avg( total&amp;lt;Product&amp;gt; Price)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2012 21:01:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-09-24T21:01:08Z</dc:date>
    <item>
      <title>Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436036#M1164446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with 2 dimensions - product and user. For each line in the table, I want to show the average price the user paid for that product, and the latest recorded price for that product. Each sale of a product is a record in a table with the price it was sold at, and the date on which it was sold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have the following recorded sales:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;User&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Price&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Paper&lt;/TD&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;$6.00&lt;/TD&gt;&lt;TD&gt;January 1, 2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Paper&lt;/TD&gt;&lt;TD&gt;Jane Doe&lt;/TD&gt;&lt;TD&gt;$5.45&lt;/TD&gt;&lt;TD&gt;May 1, 2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Paper&lt;/TD&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;$7.00&lt;/TD&gt;&lt;TD&gt;July 1, 2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Paper&lt;/TD&gt;&lt;TD&gt;Susan Smith&lt;/TD&gt;&lt;TD&gt;$4.50&lt;/TD&gt;&lt;TD&gt;February 1, 2012&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Paper&lt;/TD&gt;&lt;TD&gt;Jane Doe&lt;/TD&gt;&lt;TD&gt;$5.75&lt;/TD&gt;&lt;TD&gt;August 1, 2012&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two dimensions are computed as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Product.name&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Aggr(if(Count(Purchase.amount) &amp;gt; 0, User.username), User.username)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the computed field is simply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Average(Purchase.amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the output to be something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;User&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Average Price Paid&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Final Price&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Paper&lt;/TD&gt;&lt;TD&gt;John Doe&lt;/TD&gt;&lt;TD&gt;$6.50&lt;/TD&gt;&lt;TD&gt;$5.75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Paper&lt;/TD&gt;&lt;TD&gt;Jane Doe&lt;/TD&gt;&lt;TD&gt;$5.60&lt;/TD&gt;&lt;TD&gt;$5.75&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Paper&lt;/TD&gt;&lt;TD&gt;Susan Smith&lt;/TD&gt;&lt;TD&gt;$4.50&lt;/TD&gt;&lt;TD&gt;$5.75&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can calculate the average easily enough, but how do I determine what the final price was, if I want to only filter by the first dimension (product) and not by the second dimension (user) so that all users will have the same final price for a given product?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 18:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436036#M1164446</guid>
      <dc:creator />
      <dc:date>2012-09-24T18:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436037#M1164447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the sample application and sample data . Hope this helps you .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 20:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436037#M1164447</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-24T20:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436038#M1164448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't open the file - issue with conflicting Personal Editions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 20:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436038#M1164448</guid>
      <dc:creator />
      <dc:date>2012-09-24T20:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436039#M1164449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you have licened version or personal edition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 20:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436039#M1164449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-24T20:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436040#M1164450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears I'm using Personal Edition (it's for work - I assumed it was Enterprise edition, as there were licensing issues, but now it appears otherwise).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm downloading the Personal Edition right now that's free on my local machine, so I'll be able to view it here momentarily.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 21:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436040#M1164450</guid>
      <dc:creator />
      <dc:date>2012-09-24T21:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436041#M1164451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you use a personel edition what you do is using the excel sheet load the data into one application. And then take a straight table , in that give product and users as dimensions and in the&amp;nbsp; two expressions &lt;/P&gt;&lt;P&gt;1. Avg(Price0&lt;/P&gt;&lt;P&gt;2.Avg( total&amp;lt;Product&amp;gt; Price)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 21:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436041#M1164451</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-24T21:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436042#M1164452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you use a personal edition you cannot be able see an application created by another person or another developer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 21:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436042#M1164452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-24T21:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436043#M1164453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, so Total&amp;lt;Product.name&amp;gt; will filter based on the first dimension. That helps a lot! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But rather than the average, I want to get the closing price. So I'm looking for something along the following (I just can't find the syntax):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;price from Total&amp;lt;Product&amp;gt; order by Sale.date limit 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is - return the price for the most recent sale of the product.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 21:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436043#M1164453</guid>
      <dc:creator />
      <dc:date>2012-09-24T21:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436044#M1164454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you define what is a closing price. I did not understood right. or else post a sample application with sample data so that i can help you with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 12:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436044#M1164454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-25T12:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436045#M1164455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Original data is in the form of a few tables - customer, product, sale. Each time a product is sold, an entry is added to the sale table for that product + customer + sale date. That entry has an additional field of the actual price paid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The closing price is the most recent price paid by any customer. That is, if the data in the sale table was grouped by product alone, it would be the price corresponding to the entry with the most recent date. In the example above (in the original question), that would put the closing price for the stated product at $5.75, since that was the most recent price paid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 14:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436045#M1164455</guid>
      <dc:creator />
      <dc:date>2012-09-25T14:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436046#M1164456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the recent time will be same for each and every product or it will be different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 15:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436046#M1164456</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-25T15:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436047#M1164457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each sale has it's own final price. So if the sale table was filtered by product (much the same way you did average(Total&amp;lt;Product.id&amp;gt; Sale.price) to get the average price paid) then the number I'm looking for is the price for the row with the most recent date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the product will appear in my output multiple times (once for each customer), each row for a given product will have the same value in this field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 15:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436047#M1164457</guid>
      <dc:creator />
      <dc:date>2012-09-25T15:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436048#M1164458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope the attached example will help you . other wise can you export some sample data from your straight table in the form of excel sheet &lt;/P&gt;&lt;P&gt;so that would be easy for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 15:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436048#M1164458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-09-25T15:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add expression based on single dimension in multi-dimensional table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436049#M1164459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Elie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try following :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script: &lt;/P&gt;&lt;P&gt;table1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCT, USER, PRICE, DATE1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper, John Doe, $6.00, 01-01-2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper, Jane Doe, $5.45,01-05-2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper, John Doe, $7.00, 01-07-2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper, Susan Smith, $4.50, 01-02-2012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Paper, Jane Doe, $5.75, 01-08-2012&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;table2:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;date(Date#(DATE1,'DD-MM-YYYY'),'DD-MM-YYYY')as FinalDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Resident table1 Order by DATE1&amp;nbsp; ;&lt;/P&gt;&lt;P&gt; DROP table table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt; load PRODUCT,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FirstSortedValue(PRICE,-FinalDate) as FinalPrice&lt;/P&gt;&lt;P&gt; Resident table2 group by PRODUCT ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now take straight table and apply following:&lt;/P&gt;&lt;P&gt;Dimension1:- PRODUCT&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Dimension2:- USER&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Dimension2:-&lt;/SPAN&gt;ADD CALCULATED DIMENSION-- =aggr(FinalPrice,PRODUCT)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Expression:- Avg(PRICE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Above manipulation will give you following answer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#e1e1e1"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #000000;"&gt;PRODUCT&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #000000;"&gt;USER&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #000000;"&gt;=aggr(FinalPrice,PRODUCT)&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #000000;"&gt;Avg(PRICE)&lt;/SPAN&gt; &lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;Paper&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;John Doe&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;$5.75&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;6.5 &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;Paper&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;Jane Doe&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;$5.75&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;5.6 &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;Paper&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;Susan Smith&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;$5.75&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;4.5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Please let me know if its working.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 12:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expression-based-on-single-dimension-in-multi-dimensional/m-p/436049#M1164459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-17T12:09:42Z</dc:date>
    </item>
  </channel>
</rss>

