<?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 Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150960#M28895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;I've tried deleting the dimension, but the totals then are different. See this straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:614pt;border-collapse:collapse;" width="818"&gt;&lt;COLGROUP&gt;&lt;COL style="width:247pt;mso-width-source:userset;mso-width-alt:12032;" width="329" /&gt;&lt;COL style="width:200pt;mso-width-source:userset;mso-width-alt:9728;" width="266" /&gt;&lt;COL style="width:81pt;mso-width-source:userset;mso-width-alt:3949;" width="108" /&gt;&lt;COL style="width:86pt;mso-width-source:userset;mso-width-alt:4205;" width="115" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl66" colspan="4" height="20" style="border-right:#f0f0f0;border-top:#f0f0f0;border-left:#f0f0f0;width:614pt;border-bottom:white 0.5pt solid;height:15pt;background-color:#c5d9f1;" width="818"&gt;Expression&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl63" height="20" style="border-right:white 0.5pt solid;border-top:white;border-left:white 0.5pt solid;border-bottom:white 0.5pt solid;height:15pt;background-color:whitesmoke;"&gt;&lt;STRONG&gt;# of days heart rate of person is above person's ideal heart rate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-right:white 0.5pt solid;border-top:white;border-left:white;border-bottom:white 0.5pt solid;background-color:whitesmoke;"&gt;&lt;STRONG&gt;# of persons with heart above their ideal heart rate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-right:white 0.5pt solid;border-top:white;border-left:white;border-bottom:white 0.5pt solid;background-color:whitesmoke;"&gt;&lt;STRONG&gt;More than 200 Days&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-right:white 0.5pt solid;border-top:white;border-left:white;border-bottom:white 0.5pt solid;background-color:whitesmoke;"&gt;&lt;STRONG&gt;Between 50-150 days&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl64" height="20" style="border-right:white 0.5pt solid;border-top:white;border-left:white 0.5pt solid;width:247pt;border-bottom:white 0.5pt solid;height:15pt;background-color:whitesmoke;" width="329"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-right:white 0.5pt solid;border-top:white;border-left:white;width:200pt;border-bottom:white 0.5pt solid;background-color:whitesmoke;" width="266"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-right:white 0.5pt solid;border-top:white;border-left:white;width:81pt;border-bottom:white 0.5pt solid;background-color:whitesmoke;" width="108"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-right:white 0.5pt solid;border-top:white;border-left:white;width:86pt;border-bottom:white 0.5pt solid;background-color:whitesmoke;" width="115"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl65" height="20" style="border-right:white 0.5pt solid;border-top:white;border-left:white 0.5pt solid;width:247pt;border-bottom:white 0.5pt solid;height:15pt;background-color:white;" width="329"&gt;181&lt;/TD&gt;&lt;TD class="xl65" style="border-right:white 0.5pt solid;border-top:white;border-left:white;width:200pt;border-bottom:white 0.5pt solid;background-color:white;" width="266"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-right:white 0.5pt solid;border-top:white;border-left:white;width:81pt;border-bottom:white 0.5pt solid;background-color:white;" width="108"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-right:white 0.5pt solid;border-top:white;border-left:white;width:86pt;border-bottom:white 0.5pt solid;background-color:white;" width="115"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Aug 2009 19:17:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-03T19:17:05Z</dc:date>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150956#M28891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I want to implement a bar chart that shows 3 bars with the following information:&lt;/P&gt;&lt;P&gt;- bar 1: total number of persons with heart rate above their ideal heart rate&lt;/P&gt;&lt;P&gt;- bar 2: number of persons with heart rate above their ideal heart rate for more than 200 days&lt;/P&gt;&lt;P&gt;- bar 3: number of persons with heart rate above their ideal heart rate between 50-150 days&lt;/P&gt;&lt;P&gt;In my data model I've the following dimensions:&lt;/P&gt;&lt;P&gt;- person&lt;/P&gt;&lt;P&gt;- date&lt;/P&gt;&lt;P&gt;- ideal heart rate (per day, per person)&lt;/P&gt;&lt;P&gt;- actual hear rate (per day, per person)&lt;/P&gt;&lt;P&gt;I've implemented the following table, where the totals (sum of rows) actually show what I want in the bar chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 621pt; border-collapse: collapse;" width="827"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 51pt; mso-width-source: userset; mso-width-alt: 2486; mso-outline-parent: collapsed;" width="68" /&gt;&lt;COL style="width: 228pt; mso-width-source: userset; mso-width-alt: 11117; mso-outline-parent: collapsed;" width="304" /&gt;&lt;COL style="width: 182pt; mso-width-source: userset; mso-width-alt: 8850; mso-outline-parent: collapsed;" width="242" /&gt;&lt;COL style="width: 77pt; mso-width-source: userset; mso-width-alt: 3730; mso-outline-parent: collapsed;" width="102" /&gt;&lt;COL style="width: 83pt; mso-width-source: userset; mso-width-alt: 4059; mso-outline-parent: collapsed;" width="111" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl69" height="17" style="width: 51pt; height: 12.75pt; background-color: #c5d9f1; border: #f0f0f0;" width="68"&gt;Dimension&lt;/TD&gt;&lt;TD class="xl70" colspan="4" style="border-right: #f0f0f0; border-top: #f0f0f0; border-left: #f0f0f0; width: 570pt; border-bottom: gainsboro 0.5pt solid; background-color: #c5d9f1;" width="759"&gt;Expressions&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl65" height="17" style="height: 12.75pt; background-color: whitesmoke; border: gainsboro 0.5pt solid;"&gt;&lt;STRONG&gt;Person&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;"&gt;&lt;STRONG&gt;# of days heart rate of person is above person's ideal heart rate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;"&gt;&lt;STRONG&gt;# of persons with heart above their ideal heart rate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;"&gt;&lt;STRONG&gt;More than 200 Days&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;"&gt;&lt;STRONG&gt;Between 50-150 days&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD class="xl66" height="17" style="border-right: #f0f0f0; border-top: gainsboro; border-left: #f0f0f0; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: whitesmoke;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;"&gt;&lt;STRONG&gt;6&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: whitesmoke;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;37&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;6&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;40&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;53&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;55&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;74&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;18&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;54&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;140&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;29&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;31&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;42&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="17" style="height: 12.75pt;"&gt;&lt;TD align="right" class="xl68" height="17" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro 0.5pt solid; border-bottom: gainsboro 0.5pt solid; height: 12.75pt; background-color: white;"&gt;96&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-right: gainsboro 0.5pt solid; border-top: gainsboro; border-left: gainsboro; border-bottom: gainsboro 0.5pt solid; background-color: white;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The expressions are implemented as follows:&lt;/P&gt;&lt;P&gt;- # of days heart rate of person is above person's ideal heart rate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=sum(aggr(if(sum([Actual Heart Rate])-sum([Ideal Heart Rate])&amp;lt;0,1,0),[Date],[Person]))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;- # of persons with heart above their ideal heart rate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=if(sum(aggr(if(sum([Actual Heart Rate])-sum([Ideal Heart Rate])&amp;lt;0,1,0),[Date],[Person]))&amp;gt;0,1,0)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;- More than 200 Days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;if([# of days heart rate of person is above person's ideal heart rate]&amp;gt;200,1,0)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;- Between 50-150 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=if([# of days heart rate of person is above person's ideal heart rate]&amp;gt;=5,if([# of days heart rate of person is above person's ideal heart rate]&amp;lt;=10,1,0),0)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Is this possible or is the above straight table my only option to show the information?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 17:53:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150956#M28891</guid>
      <dc:creator />
      <dc:date>2009-08-03T17:53:36Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150957#M28892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont see there is a problem in having this data as a bar chart. Just try to change the chart type to bar chart...you can have mutiple expressions in a bar chart each appearing as a separate bar...let me know if you face any issue while doing this.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 18:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150957#M28892</guid>
      <dc:creator />
      <dc:date>2009-08-03T18:25:21Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150958#M28893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;When I change it to a bar chart, I get for each person a bar. However, I want to show only 3 bars with the information from the totals.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 18:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150958#M28893</guid>
      <dc:creator />
      <dc:date>2009-08-03T18:32:44Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150959#M28894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;Do you mean to say that you want to display just the totals bar? If yes, remove the dimension from bar chart and keep only the expressions...it will give you 3 bars for the totals.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 18:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150959#M28894</guid>
      <dc:creator />
      <dc:date>2009-08-03T18:40:26Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150960#M28895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;I've tried deleting the dimension, but the totals then are different. See this straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:614pt;border-collapse:collapse;" width="818"&gt;&lt;COLGROUP&gt;&lt;COL style="width:247pt;mso-width-source:userset;mso-width-alt:12032;" width="329" /&gt;&lt;COL style="width:200pt;mso-width-source:userset;mso-width-alt:9728;" width="266" /&gt;&lt;COL style="width:81pt;mso-width-source:userset;mso-width-alt:3949;" width="108" /&gt;&lt;COL style="width:86pt;mso-width-source:userset;mso-width-alt:4205;" width="115" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl66" colspan="4" height="20" style="border-right:#f0f0f0;border-top:#f0f0f0;border-left:#f0f0f0;width:614pt;border-bottom:white 0.5pt solid;height:15pt;background-color:#c5d9f1;" width="818"&gt;Expression&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl63" height="20" style="border-right:white 0.5pt solid;border-top:white;border-left:white 0.5pt solid;border-bottom:white 0.5pt solid;height:15pt;background-color:whitesmoke;"&gt;&lt;STRONG&gt;# of days heart rate of person is above person's ideal heart rate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-right:white 0.5pt solid;border-top:white;border-left:white;border-bottom:white 0.5pt solid;background-color:whitesmoke;"&gt;&lt;STRONG&gt;# of persons with heart above their ideal heart rate&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-right:white 0.5pt solid;border-top:white;border-left:white;border-bottom:white 0.5pt solid;background-color:whitesmoke;"&gt;&lt;STRONG&gt;More than 200 Days&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-right:white 0.5pt solid;border-top:white;border-left:white;border-bottom:white 0.5pt solid;background-color:whitesmoke;"&gt;&lt;STRONG&gt;Between 50-150 days&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl64" height="20" style="border-right:white 0.5pt solid;border-top:white;border-left:white 0.5pt solid;width:247pt;border-bottom:white 0.5pt solid;height:15pt;background-color:whitesmoke;" width="329"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-right:white 0.5pt solid;border-top:white;border-left:white;width:200pt;border-bottom:white 0.5pt solid;background-color:whitesmoke;" width="266"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-right:white 0.5pt solid;border-top:white;border-left:white;width:81pt;border-bottom:white 0.5pt solid;background-color:whitesmoke;" width="108"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-right:white 0.5pt solid;border-top:white;border-left:white;width:86pt;border-bottom:white 0.5pt solid;background-color:whitesmoke;" width="115"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl65" height="20" style="border-right:white 0.5pt solid;border-top:white;border-left:white 0.5pt solid;width:247pt;border-bottom:white 0.5pt solid;height:15pt;background-color:white;" width="329"&gt;181&lt;/TD&gt;&lt;TD class="xl65" style="border-right:white 0.5pt solid;border-top:white;border-left:white;width:200pt;border-bottom:white 0.5pt solid;background-color:white;" width="266"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-right:white 0.5pt solid;border-top:white;border-left:white;width:81pt;border-bottom:white 0.5pt solid;background-color:white;" width="108"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-right:white 0.5pt solid;border-top:white;border-left:white;width:86pt;border-bottom:white 0.5pt solid;background-color:white;" width="115"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 19:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150960#M28895</guid>
      <dc:creator />
      <dc:date>2009-08-03T19:17:05Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150961#M28896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;Could you attach a sample qvw file for this?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 19:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150961#M28896</guid>
      <dc:creator />
      <dc:date>2009-08-03T19:52:53Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150962#M28897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Sorry, but I can't upload a qvw sample. I hope you can help me in another way.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 20:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150962#M28897</guid>
      <dc:creator />
      <dc:date>2009-08-03T20:54:05Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150963#M28898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;I just uploaded a sample file. In this file the red bar should be of height 2 and not 1.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 20:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150963#M28898</guid>
      <dc:creator />
      <dc:date>2009-08-05T20:56:30Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150964#M28899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;I've just uploaded a sample file on my profile. In this report the red bar should be of height 2 and not 1.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2009 20:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150964#M28899</guid>
      <dc:creator />
      <dc:date>2009-08-05T20:59:00Z</dc:date>
    </item>
    <item>
      <title>Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150965#M28900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, the sample file crashed out my QlikView, perhaps because I'm on 8.5. But basically, I think you want to use sum(aggr(...,Person)) to duplicate what your chart is doing. Stick your expressions in where the "..." is. Ah, I was able to bring it up in 9.0. Looks like it worked, assuming you wanted numbers 3 and 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2009 05:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension/m-p/150965#M28900</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-08T05:42:40Z</dc:date>
    </item>
  </channel>
</rss>

