<?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 Table with multiple expression and two columns of data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573372#M544286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calculating two columns of data 5 different business areas. However, every single value displayed in both columns is the result of a unique calculation, as the data is drawn from various external tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously i can display all the expressions in one column easily enough, but how can I designate certain expressions to appear in column A and others in column B when there are no directly common fields in the underlying data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Category&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;revenue (column A)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;% (column B)&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;£1,232,232&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5.31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;£676,343&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6.47&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;£52,356&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3.19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;£8,632,754&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7.27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;E&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;£6,754&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6.61&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2014 10:43:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-14T10:43:20Z</dc:date>
    <item>
      <title>Table with multiple expression and two columns of data</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573372#M544286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calculating two columns of data 5 different business areas. However, every single value displayed in both columns is the result of a unique calculation, as the data is drawn from various external tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously i can display all the expressions in one column easily enough, but how can I designate certain expressions to appear in column A and others in column B when there are no directly common fields in the underlying data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Category&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;revenue (column A)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;% (column B)&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;£1,232,232&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5.31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;£676,343&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6.47&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;£52,356&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3.19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;£8,632,754&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7.27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;E&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;£6,754&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6.61&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 10:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573372#M544286</guid>
      <dc:creator />
      <dc:date>2014-04-14T10:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Table with multiple expression and two columns of data</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573373#M544287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need unique expressions for each Category, or simple 1 expression for revenue and 2'nd one for %?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 11:14:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573373#M544287</guid>
      <dc:creator />
      <dc:date>2014-04-14T11:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table with multiple expression and two columns of data</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573374#M544288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A unique expression for each category. So there would be 10 unique expressions in the table above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 11:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573374#M544288</guid>
      <dc:creator />
      <dc:date>2014-04-14T11:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Table with multiple expression and two columns of data</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573375#M544289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may like sth like this.&lt;/P&gt;&lt;P&gt;Let ma know if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 11:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573375#M544289</guid>
      <dc:creator />
      <dc:date>2014-04-14T11:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Table with multiple expression and two columns of data</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573376#M544290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you essentially saying I need to build a table in the background with the expressions? And then reference that table? I'm not sure how this would work seeing as the calculated values must be dynamic and change when the data range is altered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 11:45:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573376#M544290</guid>
      <dc:creator />
      <dc:date>2014-04-14T11:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Table with multiple expression and two columns of data</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573377#M544291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me some more clear example what you need. Maybe show me fex cases in excel....&lt;/P&gt;&lt;P&gt;In my exaple there is simple way how you may have different expressions for 1 KPI for each category.&lt;/P&gt;&lt;P&gt;But i'am sitll not sure if you really need this.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 11:53:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573377#M544291</guid>
      <dc:creator />
      <dc:date>2014-04-14T11:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Table with multiple expression and two columns of data</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573378#M544292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, i think i know what you mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you have defined a category table. If I am to use this method, do I need to define such as table as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573378#M544292</guid>
      <dc:creator />
      <dc:date>2014-04-14T13:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Table with multiple expression and two columns of data</title>
      <link>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573379#M544293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;it is rather no common need, that you want different formulas for each dimension value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Considering, that you have fact table for example with your sales and category is for example you product category, you should have the same formula for each category. To achieve this you have to do some data transformations in your load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, there may be cases, when your "category" is rather KPI name, than business dimension, and then you may need to use different formulas for each of them.&lt;/P&gt;&lt;P&gt;If you have this case, you need pick(nbr,expr_1,expr_2,....,expr_n) eventually if(category='A',sum(value),avg(value)). But personally i prefer pick() &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;If you want, you may give me more detailed info why you need those different formulas and i will try to reccomend good solution for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Darek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 13:45:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Table-with-multiple-expression-and-two-columns-of-data/m-p/573379#M544293</guid>
      <dc:creator />
      <dc:date>2014-04-14T13:45:30Z</dc:date>
    </item>
  </channel>
</rss>

