<?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 Calculated members in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241459#M91873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don´t know it is possible....you can try add a calculated dimension..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Oct 2010 18:49:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-19T18:49:33Z</dc:date>
    <item>
      <title>Calculated members</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241456#M91870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 10pt; line-height: normal; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"&gt;Is it possible to create calculated member in QV. For example in Account Dim I have Energy and Gas, and I Want to display Energy + Gas in the chart. Something like this:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="width: 384pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0cm 0cm 0cm 0cm;" width="512"&gt;&lt;TBODY&gt;&lt;TR style="height: 12.75pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="background: whitesmoke; width: 74pt; height: 12.75pt; mso-border-alt: solid gainsboro .5pt; border: gainsboro 1pt solid; padding: 0cm;" width="99"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 6pt"&gt;Account&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: gainsboro 1pt solid; background: whitesmoke; border-left: #ece9d8; width: 74pt; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-top-alt: solid gainsboro .5pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;" width="99"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 6pt"&gt;Amount&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: gainsboro 1pt solid; background: whitesmoke; border-left: #ece9d8; width: 74pt; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-top-alt: solid gainsboro .5pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;" width="99"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 6pt"&gt;AmountD&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: gainsboro 1pt solid; background: whitesmoke; border-left: #ece9d8; width: 74pt; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-top-alt: solid gainsboro .5pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;" width="99"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 6pt"&gt;Ratio&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: gainsboro 1pt solid; background: whitesmoke; border-left: #ece9d8; width: 88pt; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-top-alt: solid gainsboro .5pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;" width="117"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 6pt"&gt;Amount+AmountD&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt; mso-yfti-irow: 1;"&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: gainsboro 1pt solid; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; mso-border-left-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="margin: 6pt; line-height: normal;"&gt;Energy&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="line-height: normal; margin: 6pt; text-align: right"&gt;1,370&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="line-height: normal; margin: 6pt; text-align: right"&gt;134&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="line-height: normal; margin: 6pt; text-align: right"&gt;10.22&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="line-height: normal; margin: 6pt; text-align: right"&gt;1504&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt; mso-yfti-irow: 2;"&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: gainsboro 1pt solid; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; mso-border-left-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="margin: 6pt; line-height: normal;"&gt;Water&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="line-height: normal; margin: 6pt; text-align: right"&gt;2,104&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="line-height: normal; margin: 6pt; text-align: right"&gt;134&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="line-height: normal; margin: 6pt; text-align: right"&gt;15.70&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="line-height: normal; margin: 6pt; text-align: right"&gt;2238&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt; mso-yfti-irow: 3;"&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: gainsboro 1pt solid; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; mso-border-left-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="margin: 6pt; line-height: normal;"&gt;Gas&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="line-height: normal; margin: 6pt; text-align: right"&gt;2,131&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="line-height: normal; margin: 6pt; text-align: right"&gt;134&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="line-height: normal; margin: 6pt; text-align: right"&gt;15.90&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="line-height: normal; margin: 6pt; text-align: right"&gt;2265&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 12.75pt; mso-yfti-irow: 4; mso-yfti-lastrow: yes;"&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: gainsboro 1pt solid; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; mso-border-left-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 6pt"&gt;Energy + Water&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 6pt; text-align: right"&gt;3,474&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 6pt; text-align: right"&gt;268&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 6pt; text-align: right"&gt;25.93&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-right: gainsboro 1pt solid; border-top: #ece9d8; background: white; border-left: #ece9d8; border-bottom: gainsboro 1pt solid; height: 12.75pt; mso-border-bottom-alt: solid gainsboro .5pt; mso-border-right-alt: solid gainsboro .5pt; padding: 0cm;"&gt;&lt;P style="font-weight: bold; line-height: normal; margin: 6pt; text-align: right"&gt;3742&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 16:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241456#M91870</guid>
      <dc:creator />
      <dc:date>2010-10-19T16:42:22Z</dc:date>
    </item>
    <item>
      <title>Calculated members</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241457#M91871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make that on your script through call a dimension same name!&lt;/P&gt;&lt;P&gt;Something like :&lt;/P&gt;&lt;P&gt;IF(Account='Energy' OR Account='Gas', 'Energy+Gas') AS Account&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 17:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241457#M91871</guid>
      <dc:creator />
      <dc:date>2010-10-19T17:00:59Z</dc:date>
    </item>
    <item>
      <title>Calculated members</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241458#M91872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, but would it be possible in the chart, with formulas? I ask because other BI tools have this feature.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 18:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241458#M91872</guid>
      <dc:creator />
      <dc:date>2010-10-19T18:22:41Z</dc:date>
    </item>
    <item>
      <title>Calculated members</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241459#M91873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don´t know it is possible....you can try add a calculated dimension..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 18:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241459#M91873</guid>
      <dc:creator />
      <dc:date>2010-10-19T18:49:33Z</dc:date>
    </item>
    <item>
      <title>Calculated members</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241460#M91874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Groups:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Account Group, Account&lt;BR /&gt;Energy, Energy&lt;BR /&gt;Water, Water&lt;BR /&gt;Gas, Gas&lt;BR /&gt;Energy + Water, Energy&lt;BR /&gt;Energy + Water, Water&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Then use Account Group instead of Account as your dimension. Now yes, I could probably accomplish the same thing with some calculated dimensions and interesting expressions. I wouldn't. I would do it with data as shown above.&lt;/P&gt;&lt;P&gt;Hmmm, just noticed that you want 268 for the AmountD column. But are you sure you want 268? I'd think you'd want 134 to match the 25.93 ratio, since 3474/134 = 25.93. And I don't think the Amount + AmountD column makes any sense, or at least I don't understand it. Anyway, I'd still probably add the account groups, and just fix any formulas that need fixing, but I'm not sure any of them need fixing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 19:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241460#M91874</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-19T19:22:30Z</dc:date>
    </item>
    <item>
      <title>Calculated members</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241461#M91875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sometimes is better to make 2 tables and suppress the header of the second table to make it look like they are the same table, but if it has to be in the same table, you can use the valuelist() function to create any grouping. It can sometimes be a little cumbersome to work with (commenting the expression helps), but with that function you can basically put whatever formula in whatever cell you want as if it were Excel.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Edit: It is better to change the script as recommended above instead of the attached solution for performance reasons, but sometimes it is good to give some kind of flexibility to the power user on the graphic side. Especially those ubiquitious Excel users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 19:22:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241461#M91875</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-10-19T19:22:35Z</dc:date>
    </item>
    <item>
      <title>Calculated members</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241462#M91876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree that the valuelist() + pick(match()) approach is a valuable one. I wish there were a simpler way to get that sort of cell-by-cell flexibility, but I haven't thought of one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 19:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241462#M91876</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-10-19T19:41:59Z</dc:date>
    </item>
    <item>
      <title>Calculated members</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241463#M91877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pedro,&lt;/P&gt;&lt;P&gt;It's real easy. Use Set Analysis:&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;sum( {$&amp;lt;[Account] = {Energy} &amp;gt;} Value ) + sum( {$&amp;lt;[Account] = {Water} &amp;gt;} Value )&lt;/P&gt;&lt;P&gt;That's all!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 00:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241463#M91877</guid>
      <dc:creator />
      <dc:date>2011-01-19T00:39:41Z</dc:date>
    </item>
    <item>
      <title>Calculated members</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241464#M91878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis can easily add energy to water, yes, though the expression could be simplified (as used by Karl in his solution):&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;Account={'Energy','Water'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;But MERELY using set analysis to restrict the accounts to energy and water has the effect of simply removing the "Gas" row from the chart. That's not what we wanted. We wanted to add an "Energy + Water" row to the existing chart. Good try, though. Welcome to the forum.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jan 2011 00:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-members/m-p/241464#M91878</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-01-19T00:57:21Z</dc:date>
    </item>
  </channel>
</rss>

