<?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: Creating a histogram using data spanning two tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359873#M133604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Also note that I've defined the repayment banding sizes as a variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 May 2012 16:57:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-19T16:57:05Z</dc:date>
    <item>
      <title>Creating a histogram using data spanning two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359867#M133598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have two data tables, one showing value of payments over time by individuals split by types of payment, the second showing account status for each individual by year:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table 1: payments over time&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="jiveNoBorder" style="width: 440px; border: #000000 0px solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="130"&gt;Individual ID&lt;/TD&gt;&lt;TD class="xl63" width="102"&gt;Tax Year Ended&lt;/TD&gt;&lt;TD class="xl63" width="94"&gt;Payment type&lt;/TD&gt;&lt;TD class="xl63" width="114"&gt;Payment amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2010&lt;/TD&gt;&lt;TD&gt;Voluntary&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2010&lt;/TD&gt;&lt;TD&gt;Scheduled&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2011&lt;/TD&gt;&lt;TD&gt;Voluntary&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2011&lt;/TD&gt;&lt;TD&gt;Scheduled&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2012&lt;/TD&gt;&lt;TD&gt;Voluntary&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2012&lt;/TD&gt;&lt;TD&gt;Scheduled&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;2010&lt;/TD&gt;&lt;TD&gt;Voluntary&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;2010&lt;/TD&gt;&lt;TD&gt;Scheduled&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;2011&lt;/TD&gt;&lt;TD&gt;Voluntary&lt;/TD&gt;&lt;TD align="right"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;2011&lt;/TD&gt;&lt;TD&gt;Scheduled&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;2012&lt;/TD&gt;&lt;TD&gt;Voluntary&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;2012&lt;/TD&gt;&lt;TD&gt;Scheduled&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Table 2: account status over time&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 352px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="130"&gt;Individual ID&lt;/TD&gt;&lt;TD class="xl65" width="101"&gt;Tax Year Ended&lt;/TD&gt;&lt;TD class="xl65" width="121"&gt;Is Account Active&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2010&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2011&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;2012&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;2010&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;2011&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;2012&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I would like to create a histogram showing the number of active accounts split between £10 total payment bands in each year.&amp;nbsp; Once I've cracked this, I'd then like to be able to filter between Voluntary and Scheduled payments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current syntax is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension1:&amp;nbsp; &lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Payment Amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;), &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;10)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; //intended to create £10 total payment bandings.&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Dimension2: &lt;SPAN style="font-size: 8pt;"&gt;[Tax Year Ended]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression: &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum(Is Account Active&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; //Adds the number of active accounts for the combination of payment amount and year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above results in the X axist of my chart reading as "//Error in calculated dimension".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new to Qlikview but have tried a whole range of approaches to cracking this without any success.&amp;nbsp; Maybe it needs a completely different approach.&amp;nbsp; I'd really appreciate it if somebody out there could help me.&amp;nbsp; If possible I'd like to solve this without having to change the structure of my input data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 13:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359867#M133598</guid>
      <dc:creator />
      <dc:date>2012-05-19T13:51:59Z</dc:date>
    </item>
    <item>
      <title>Creating a histogram using data spanning two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359868#M133599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you attach sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 15:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359868#M133599</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2012-05-19T15:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a histogram using data spanning two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359869#M133600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Hi,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You Expression should be some thing like below.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=CLASS(AGGR(Sum ([Payment amount]),[Tax year ended]),10)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You need to enclose your Sum([Payment amount]) with aggr() function, since you are using expression in dimension.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Have a look at the attached application.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope this helps you.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;-Sridhar&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 15:12:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359869#M133600</guid>
      <dc:creator>sridhar240784</dc:creator>
      <dc:date>2012-05-19T15:12:46Z</dc:date>
    </item>
    <item>
      <title>Creating a histogram using data spanning two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359870#M133601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is hugely helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've looked at your sample file and implemented the expression in the real thing.&amp;nbsp; Unfortunately it's putting everything in the 0-10 category when I know there should be a wider spread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One difference I noted between your file and mine is that you've set up extra key fields in the script.&amp;nbsp; Are these important?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have them and Qlikview is creating new "Syn" tables to link my tables together.&amp;nbsp; Could this be what's going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 16:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359870#M133601</guid>
      <dc:creator />
      <dc:date>2012-05-19T16:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a histogram using data spanning two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359871#M133602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Extra key field which i have created is only to avoid "syn" table.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Having "Syn" table is not wrong but it is not advisable to have in Qlikview because it will slow down the Qlikview application performance if you work with huge data.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Now i have changed my data model also like your data model i.e. with "syn" table. Please have a look at the table and if this is not helping you, post your sample application. so that we can help you.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 16:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359871#M133602</guid>
      <dc:creator>sridhar240784</dc:creator>
      <dc:date>2012-05-19T16:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a histogram using data spanning two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359872#M133603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the advice on synthetic tables.&amp;nbsp; Good to know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still haven't found a way around the problem so here is a sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that I there are a couple of extra fields and some extra payment types in this version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 16:56:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359872#M133603</guid>
      <dc:creator />
      <dc:date>2012-05-19T16:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a histogram using data spanning two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359873#M133604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Also note that I've defined the repayment banding sizes as a variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 16:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359873#M133604</guid>
      <dc:creator />
      <dc:date>2012-05-19T16:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a histogram using data spanning two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359874#M133605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Mistake was on your field name. QlikView is case sensitive.You dont have any field Called "amount" it is "Amount".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This was causing the issue. Find the corrected expression below.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=CLASS(AGGR(Sum ([Amount]),[Tax Year Ended]),[Repayment Bandings])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Have a look at the attched application.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope this helps you.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 17:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359874#M133605</guid>
      <dc:creator>sridhar240784</dc:creator>
      <dc:date>2012-05-19T17:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a histogram using data spanning two tables</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359875#M133606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to make one further adjustment.&amp;nbsp; Qlikview was giving the banding that the overall total for the year sat in, rather than the number of individuals in each band in each year.&amp;nbsp; I fixed this by including the individual in the AGGR function as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Tax Year Ended]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Simulation number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;[Repayment Bandings])&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The image below is exactly what I was aiming for!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image.png" class="jive-image" height="126" src="https://community.qlik.com/legacyfs/online/14492_image.png" width="217" /&gt;&lt;/P&gt;&lt;P&gt;Huge huge thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;Next I'd like to see if I can show the y axis values as a percentage of the total number of active accounts each year.&amp;nbsp; The difficult bit is setting up a denominator which excludes the filters we set up as part of the dimensions.&amp;nbsp; At the moment I have this which is returning no data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;=sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Active&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Tax Year Ended]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Tax Year Ended]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Simulation number]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;[Repayment Bandings]&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&amp;gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Active&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Any ideas about how I can sort this out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 17:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-histogram-using-data-spanning-two-tables/m-p/359875#M133606</guid>
      <dc:creator />
      <dc:date>2012-05-19T17:59:03Z</dc:date>
    </item>
  </channel>
</rss>

