<?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 expression as column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877647#M659404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ps. I add some records in your inline example statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 16:27:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-05T16:27:04Z</dc:date>
    <item>
      <title>Adding expression as column</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877641#M659392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I've got chart at which i'm calculating values of a few dates. I'd like to have pivot table where at the top side there are values from one expression and the rest of expressions and dimentions to be at the left side of the table. Is it possible?&lt;/P&gt;&lt;P&gt;Second question - i want to make avg of a few fields. I've got column where i get sum of fields and from this sums i want avg. There are some values missing. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 11:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877641#M659392</guid>
      <dc:creator />
      <dc:date>2015-05-05T11:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression as column</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877642#M659393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. yes you can do this, just position on top of the field you want to move and drag it to wherever you want&lt;/P&gt;&lt;P&gt;2. would have to see more details &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 15:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877642#M659393</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-05-05T15:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression as column</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877643#M659395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post an example qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 15:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877643#M659395</guid>
      <dc:creator />
      <dc:date>2015-05-05T15:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression as column</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877644#M659397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if it opens, so i'll post table here.&lt;/P&gt;&lt;P&gt;ReadingDate,=avg(Cost) &lt;/P&gt;&lt;P&gt;11/04/2011,£10.00 &lt;/P&gt;&lt;P&gt;28/05/2011,£326.00 &lt;/P&gt;&lt;P&gt;02/06/2011,£12.00 &lt;/P&gt;&lt;P&gt;28/06/2011,£53.00 &lt;/P&gt;&lt;P&gt;10/09/2011,£956.00 &lt;/P&gt;&lt;P&gt;11/10/2011,£63.00 &lt;/P&gt;&lt;P&gt;01/01/2012,£36.00 &lt;/P&gt;&lt;P&gt;11/04/2012,£150.00 &lt;/P&gt;&lt;P&gt;12/05/2012,£100.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table looks like this, i've got average for every value, but i'd like to have average value of all this values in one field.&lt;/P&gt;&lt;P&gt;I already coped with positioning column, but i've got quite big problem with this field.&lt;/P&gt;&lt;P&gt;When i try to add another column where i take avg/sum of elements, in best case it 'sums' value from only one row, so it re-writes values i already have.&lt;/P&gt;&lt;P&gt;Also - some of the values can be missing - i can put there 0 or 'NaN'. Is it possible to make avg from something like this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 15:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877644#M659397</guid>
      <dc:creator />
      <dc:date>2015-05-05T15:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression as column</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877645#M659399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so you want an average of averages ? or you just want one single avg that shows for all the data that you are presenting ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 16:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877645#M659399</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-05-05T16:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression as column</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877646#M659401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the file i attached. Hope it will helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 16:26:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877646#M659401</guid>
      <dc:creator />
      <dc:date>2015-05-05T16:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression as column</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877647#M659404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ps. I add some records in your inline example statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 16:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877647#M659404</guid>
      <dc:creator />
      <dc:date>2015-05-05T16:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression as column</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877648#M659406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel so stupid...&lt;/P&gt;&lt;P&gt;I can't open file because i've got personal edition and i already opened file too many times...&lt;/P&gt;&lt;P&gt;Sorry.&lt;/P&gt;&lt;P&gt;Is there any other solution to open it?&lt;/P&gt;&lt;P&gt;If no, i'll download QlikView on another PC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 16:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877648#M659406</guid>
      <dc:creator />
      <dc:date>2015-05-05T16:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression as column</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877649#M659408</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;From your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should fix problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=avg(TOTAL Cost)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Miikka&lt;/P&gt;&lt;P&gt;Climber Finland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 16:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877649#M659408</guid>
      <dc:creator>miikkaqlick</dc:creator>
      <dc:date>2015-05-05T16:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression as column</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877650#M659410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;You can test that expression to solve calculation of avg for pre-aggregated sums:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;=num(Sum(Aggr(Sum({&amp;lt;flag_approxYr={1}&amp;gt;} Cost),ReadingDate)) / count(ReadingDate),'£#,###.##') &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;wich create a "virtual" table of sums for every ReadingDate and than perform avg of that sums&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;to understand the logic check the image below&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;IMG alt="05-05-2015 18-39-23.jpg" class="jive-image image-1" src="/legacyfs/online/85648_05-05-2015 18-39-23.jpg" style="height: 121px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 16:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877650#M659410</guid>
      <dc:creator />
      <dc:date>2015-05-05T16:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding expression as column</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877651#M659412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creating your chart and setting it to be a pivot is the simplest way of getting dimensions along the top and down the side.&amp;nbsp; It can be a bit fiddly pulling the dimensions to the correct places on the pivot, but it can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If, however, you want to have different expressions in different columns (e.g. 12 months, then an extra column for averages) this can get problematic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve some things by using the &lt;STRONG&gt;dimensionality &lt;/STRONG&gt;and &lt;STRONG&gt;secondarydimensionality&lt;/STRONG&gt; functions, which allow you to do different calculations depending on whether you are in a cell in the middle of the pivot or in a total column.&amp;nbsp; This does not allow you to do everything though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Often I find that the only way to do columns for each month then additional columns (eg. average and total columns) is to have a separate expression for each month, and then expressions for the extra columns also.&amp;nbsp; For the month columns &lt;STRONG&gt;Set Analysis&lt;/STRONG&gt; is required to get the single month values.&amp;nbsp; The expressions for the extra columns can then either reference the results of the prior columns, or use set analysis again over a broader period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 23:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-expression-as-column/m-p/877651#M659412</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-05-05T23:42:01Z</dc:date>
    </item>
  </channel>
</rss>

