<?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: Calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779751#M1030000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica,&lt;/P&gt;&lt;P&gt;If you Need Bars as per the No. of Locations and an Expression that calculates your data(which you have not mentioned),&lt;/P&gt;&lt;P&gt;Then try taking &lt;SPAN style="text-decoration: underline;"&gt;'Location'&lt;/SPAN&gt; as your &lt;SPAN style="text-decoration: underline;"&gt;dimension&lt;/SPAN&gt; and create &lt;SPAN style="text-decoration: underline;"&gt;two Expressions&lt;/SPAN&gt; , one with the regular calculation and the other with 'Total'. thus you will get seperate Bars for Individual and Total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2015 15:51:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-10T15:51:08Z</dc:date>
    <item>
      <title>Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779749#M1029998</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;Hoping there might be an easy solution to this... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a 100% stacked bar chart with four expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like two dimensions (i.e. two separate bars) - one to show values for &lt;STRONG&gt;all&lt;/STRONG&gt; data and one to show filtered values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the past I have used something like:&lt;/P&gt;&lt;P&gt;=if(Location=1,'Liverpool', If(Location=2,'Manchester'))&amp;nbsp;&amp;nbsp; - thereby only including two mutually exclusive categories. &lt;/P&gt;&lt;P&gt;But now I want:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=if(Location=1,'Liverpool', If(Location=ALL,'National'))&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;Any suggestions greatly appreciated. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Jessica &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 15:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779749#M1029998</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-10T15:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779750#M1029999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's hard to visualize what kind of a chart you are trying to produce... Can you post a mock-up image from Excel or even a manual drawing of what you are after?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 15:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779750#M1029999</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-10T15:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779751#M1030000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica,&lt;/P&gt;&lt;P&gt;If you Need Bars as per the No. of Locations and an Expression that calculates your data(which you have not mentioned),&lt;/P&gt;&lt;P&gt;Then try taking &lt;SPAN style="text-decoration: underline;"&gt;'Location'&lt;/SPAN&gt; as your &lt;SPAN style="text-decoration: underline;"&gt;dimension&lt;/SPAN&gt; and create &lt;SPAN style="text-decoration: underline;"&gt;two Expressions&lt;/SPAN&gt; , one with the regular calculation and the other with 'Total'. thus you will get seperate Bars for Individual and Total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps !&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 15:51:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779751#M1030000</guid>
      <dc:creator />
      <dc:date>2015-02-10T15:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779752#M1030001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course (probably should have done that to begin with).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an image of what I would like to eventually produce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The four sections of each bar are calculated from four different calculated expressions. E.g. 1) % of dog owners, % cat owners, % 'other pet' owners, % 'no pet' owners.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the top bar (pictured) to include &lt;STRONG&gt;all&lt;/STRONG&gt; my data (unfiltered by location) and the bottom bar to include &lt;STRONG&gt;only&lt;/STRONG&gt; data from a filter (by location).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the top bar would show me the percentages of animal owners across the nation (all locations) and the bottom bar would show me the percentages of animal owners in Liverpool only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes things a bit clearer, and huge thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jessica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 15:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779752#M1030001</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-10T15:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779753#M1030002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi P, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response - unfortunately I don't think this will work. I have now included a picture and more detailed explanation of what I need. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jessica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 15:59:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779753#M1030002</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-10T15:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779754#M1030003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does National contains Data from Liverpool as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, I would advise to stack 2 chart objects one on top of the other with one for all and the second one for only Liverpool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Antoine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 16:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779754#M1030003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-10T16:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779755#M1030004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to do something like this in the past.&amp;nbsp; You need to create an INLINE table for a madeup ID i.e. 1, 2 and then the description of what each calculation is.&amp;nbsp; The problem is if you have more than 1 dimension you can't have a stacked bar.&amp;nbsp; So create a new dimension using the INLINE described above..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PatientTrigger:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %PTID, %PatientTrigger&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1, Triggers //(Nameofyourselectionexpression)&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2, Patients //(Nameofallselctionexpression)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Then use a PICK statement for your expression ie.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PICK(%PTID,&lt;/P&gt;&lt;P&gt;COUNT(DISTINCT InterventionID),&amp;nbsp; //expressionforselections&lt;/P&gt;&lt;P&gt;COUNT({$&amp;lt;CACareLine=&amp;gt;}DISTINCT PersonID)) //expressionforallselections&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%PatientTrigger(Name of your description column in the inline) will be your new DIM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PICK is your expressions, so based on the inline the first statement in the PICK will be your ID 1, and second statement will be ID 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 16:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779755#M1030004</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2015-02-10T16:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779756#M1030005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also your original post stated you had four expressions so your inline wouldn't stop at 2, it would go up to 4, and your pick would have your 4 expressions in it based on the order of the inline table ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 16:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779756#M1030005</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2015-02-10T16:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779757#M1030006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica, not tested but maybe you can do:&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=if(Location=1,'Liverpool','National')&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;Expressions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;=if(Location=1, YourActualExpression, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;YourActualExpressionWithTOTALQualifier)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 16:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779757#M1030006</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-02-10T16:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779758#M1030007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I understand correctly, the first set of 4 bars need to show the "selected" or "available" location, and the second set of bars shows the same of all locations...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I'd suggest the following (not tested):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension (calculated):&lt;/P&gt;&lt;P&gt;=ValueList('$(=concat(Location, ', '))', 'ALL')&amp;nbsp;&amp;nbsp; // This will allow one or more selected locations to be presented in the first bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF( &lt;SPAN style="font-size: 13.3333330154419px;"&gt;ValueList('$(=concat(Location, ', '))', 'ALL') = 'ALL',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({1} Value)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // disregard all selections&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(Value)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Only selected values&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, to form 4 stacked segments that sum up to 100%, you can either use a second Dimension, or use 4 distinct Expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this one works for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 23:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779758#M1030007</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-02-10T23:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779759#M1030008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Antoine, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;National does also contain data from Liverpool. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have currently got 2 chart objects one on top of the other, but as I need the caption bar at the top, it looks a bit disjointed, so I'm hoping that there is a way to get both bars in one chart! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jessica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 12:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779759#M1030008</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-11T12:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779760#M1030009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless I've misunderstood, your solution would give me a bar with just Liverpool data, and a bar with all other data (National). Unfortunately, I need the National bar to include all data (inc. Liverpool data). &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your advice, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Jessica &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 12:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779760#M1030009</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-11T12:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779761#M1030010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oleg, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me the right 'look' (I end up with two stacked bars with four sections, one labelled 'ALL' and one labelled 'Liverpool' (when selected)) so it's a great suggestion.&lt;/P&gt;&lt;P&gt;Unfortunately, both bars are pulling in the exact same data for some reason so the Liverpool bar, despite being labelled as Liverpool, is actually showing All data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion though, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Jessica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 12:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779761#M1030010</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-11T12:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779762#M1030011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jessica, I tested it:&lt;/P&gt;&lt;P&gt;From this data:&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;Location, Sales&lt;/P&gt;&lt;P&gt;1, 100&lt;/P&gt;&lt;P&gt;2, 200&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/77645_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the TOTAL qualifier, Liverpool is included in National, the expression is:&lt;/P&gt;&lt;P&gt;=if(Location=1, Sum(Sales), Sum(TOTAL Sales))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 12:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779762#M1030011</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-02-11T12:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779763#M1030012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My apologies - I didn't think that would give me the right result (should have known better!). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able to help me rewrite my expressions? All four are the same except that 'Pet Category' changes in each case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=COUNT ( {1&amp;lt;[Pet Category]={4},[Age range]={'Mid'}, [Date set]={1} &amp;gt;}&lt;/P&gt;&lt;P&gt;DISTINCT [RespondentID])/COUNT ( &lt;/P&gt;&lt;P&gt;{1&amp;lt;[Pet Category]={1,2,3,4}, [Age Range]={'Mid'}, [Date set]={1} &amp;gt;}&lt;/P&gt;&lt;P&gt;DISTINCT [RespondentID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, based on your advice I've got: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;=IF (Location='Liverpool', COUNT ( {1&amp;lt;[Pet Category]={4},[Age range]={'Mid'}, [Date set]={1} &amp;gt;}&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;DISTINCT [RespondentID])/COUNT ( &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;{1&amp;lt;[Pet Category]={1,2,3,4}, [Age Range]={'Mid'}, [Date set]={1} &amp;gt;}&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;DISTINCT [RespondentID]), ........)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;But I'm not sure how to rewrite the expression with a TOTAL qualifier. &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Thank you so much, &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Jessica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 12:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779763#M1030012</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-11T12:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779764#M1030013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created the INLINE as: &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Ownership:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %ID, %Ownership&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; 1, Dog&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; 2, Cat&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;3, Other&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;4, None&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;];&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;But I'm lost on the expression part. &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Do I need to add the PICK statement to all four expressions? &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;At the moment, each expression is as follows (with just 'Pet Category' changing in each):&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;=COUNT ( {1&amp;lt;[Pet Category]={4},[Age range]={'Mid'}, [Date set]={1} &amp;gt;}&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;DISTINCT [RespondentID])/COUNT (&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;{1&amp;lt;[Pet Category]={1,2,3,4}, [Age Range]={'Mid'}, [Date set]={1} &amp;gt;}&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;DISTINCT [RespondentID])&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Thanks once again, &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Jessica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 13:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779764#M1030013</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-11T13:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779765#M1030014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, not tested (this will be hard to test without sample document) but maybe:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;=IF (Location='Liverpool', COUNT ( {1&amp;lt;[Pet Category]={4},[Age range]={'Mid'}, [Date set]={1} &amp;gt;}&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;DISTINCT [RespondentID])/COUNT ( &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;{1&amp;lt;[Pet Category]={1,2,3,4}, [Age Range]={'Mid'}, [Date set]={1} &amp;gt;}&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;DISTINCT [RespondentID]),&lt;/P&gt;&lt;P&gt;COUNT (TOTAL {1&amp;lt;[Pet Category]={4},[Age range]={'Mid'}, [Date set]={1} &amp;gt;}&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;DISTINCT [RespondentID])/COUNT (TOTAL&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;{1&amp;lt;[Pet Category]={1,2,3,4}, [Age Range]={'Mid'}, [Date set]={1} &amp;gt;}&lt;/P&gt;&lt;P&gt;DISTINCT [RespondentID])&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 14:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779765#M1030014</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-02-11T14:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779766#M1030015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's fantastic! Thank you so much Ruben, works perfectly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very much appreciated! &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Jessica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 14:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779766#M1030015</guid>
      <dc:creator>jessica_webb</dc:creator>
      <dc:date>2015-02-11T14:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779767#M1030016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brilliant !!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779767#M1030016</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-11T15:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779768#M1030017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PICK(%ID,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;COUNT ( {1&amp;lt;[Pet Category]={1},[Age range]={'Mid'}, [Date set]={1} &amp;gt;}&lt;SPAN style="line-height: 1.5em;"&gt;DISTINCT [RespondentID])/COUNT (&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;{1&amp;lt;[Pet Category]={1}, [Age Range]={'Mid'}, [Date set]={1} &amp;gt;}&lt;SPAN style="line-height: 1.5em;"&gt;DISTINCT [RespondentID]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;COUNT ( {1&amp;lt;[Pet Category]={2},[Age range]={'Mid'}, [Date set]={1} &amp;gt;}DISTINCT [RespondentID])/COUNT (&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;{1&amp;lt;[Pet Category]={2}, [Age Range]={'Mid'}, [Date set]={1} &amp;gt;}DISTINCT [RespondentID]),&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;COUNT ( {1&amp;lt;[Pet Category]={3},[Age range]={'Mid'}, [Date set]={1} &amp;gt;}DISTINCT [RespondentID])/COUNT (&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;{1&amp;lt;[Pet Category]={3}, [Age Range]={'Mid'}, [Date set]={1} &amp;gt;}DISTINCT [RespondentID]),&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;COUNT ( {1&amp;lt;[Pet Category]={4},[Age range]={'Mid'}, [Date set]={1} &amp;gt;}DISTINCT [RespondentID])/COUNT (&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;{1&amp;lt;[Pet Category]={4}, [Age Range]={'Mid'}, [Date set]={1} &amp;gt;}DISTINCT [RespondentID])))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 15:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/779768#M1030017</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2015-02-11T15:06:43Z</dc:date>
    </item>
  </channel>
</rss>

