<?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 How can I add dimension to expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328764#M500217</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;&lt;/P&gt;&lt;P&gt;I tried building the same way table and I get '-' for each row.&lt;/P&gt;&lt;P&gt;The data is coming from different tables that I have Concatenated together. PRKey is the same in both tables. Can this be the reason?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen shot 2011-05-26 at 3.28.33 PM.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/4743_Screen+shot+2011-05-26+at+3.28.33+PM.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2011 12:34:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-26T12:34:50Z</dc:date>
    <item>
      <title>How can I add dimension to expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328757#M500206</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;I am trying to create counter for a number of projects that have spent value under the budget. I decided to use a Text Object for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do it as a Table Chart, then I can get the number by Summing up the result (3 in the example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; margin-left: auto; margin-right: auto; border-width: 1px; border-color: #000000; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Project&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Budget&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Spent&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Result (1= under, 0=over)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;150&lt;/TD&gt;&lt;TD&gt;35&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TOTAL&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;TD&gt;155&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how can I add it to one expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use if((Sum(Budget)-Sum(Spent))&amp;gt;0,1,0) in the table it works just fine, but in Text object QV will not know what budgets and spent go together.&lt;/P&gt;&lt;P&gt;Sum(Budget)-Sum(Spent) will give 345 and I cannot count the projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mariliis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 08:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328757#M500206</guid>
      <dc:creator />
      <dc:date>2011-05-26T08:54:25Z</dc:date>
    </item>
    <item>
      <title>How can I add dimension to expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328758#M500208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marilis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; you want in textbox for the above example the count 3 as answer? Do I understand you correctly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 11:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328758#M500208</guid>
      <dc:creator />
      <dc:date>2011-05-26T11:13:48Z</dc:date>
    </item>
    <item>
      <title>How can I add dimension to expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328759#M500209</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;try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if(aggr(Sum(Budget-Spent),project)&amp;gt;0,1,0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 11:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328759#M500209</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-05-26T11:37:01Z</dc:date>
    </item>
    <item>
      <title>How can I add dimension to expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328760#M500210</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;Yes, I'd like to use Text Object and answer for the example above should give 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 11:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328760#M500210</guid>
      <dc:creator />
      <dc:date>2011-05-26T11:57:29Z</dc:date>
    </item>
    <item>
      <title>How can I add dimension to expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328761#M500212</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;This gives me 0, but thanks for answering, I'll look more into aggr function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 11:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328761#M500212</guid>
      <dc:creator />
      <dc:date>2011-05-26T11:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add dimension to expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328762#M500214</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;here is a qvw with the result I get. Maybe your dataset is different.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 12:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328762#M500214</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-05-26T12:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add dimension to expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328763#M500215</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;what Pat.agen wrote is correct.I wanted to write same too. I think the format might be different in your database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 12:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328763#M500215</guid>
      <dc:creator />
      <dc:date>2011-05-26T12:12:19Z</dc:date>
    </item>
    <item>
      <title>How can I add dimension to expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328764#M500217</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;&lt;/P&gt;&lt;P&gt;I tried building the same way table and I get '-' for each row.&lt;/P&gt;&lt;P&gt;The data is coming from different tables that I have Concatenated together. PRKey is the same in both tables. Can this be the reason?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen shot 2011-05-26 at 3.28.33 PM.png" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/4743_Screen+shot+2011-05-26+at+3.28.33+PM.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 12:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328764#M500217</guid>
      <dc:creator />
      <dc:date>2011-05-26T12:34:50Z</dc:date>
    </item>
    <item>
      <title>How can I add dimension to expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328765#M500218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what about this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if(aggr(Sum(TBBUSumTime)-Sum(TBIVSum),PRKey)&amp;lt;0,1,0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 12:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328765#M500218</guid>
      <dc:creator />
      <dc:date>2011-05-26T12:41:13Z</dc:date>
    </item>
    <item>
      <title>How can I add dimension to expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328766#M500220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; had to be other way from the answer, but I got the same number now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try adding Sum in front of both of them, but I added to many brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you both very much! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 12:46:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328766#M500220</guid>
      <dc:creator />
      <dc:date>2011-05-26T12:46:19Z</dc:date>
    </item>
    <item>
      <title>How can I add dimension to expression</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328767#M500221</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;yes it may well be especially if the budget and spent values are coming from the different load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this variation which should get round this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(if(aggr(Sum(budget)-sum(spent),project)&amp;gt;0,1,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't try this first time round as I didn't think it would work but have tried on my dataset and it works whereas the first solution I gave you does not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2011 12:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-add-dimension-to-expression/m-p/328767#M500221</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-05-26T12:46:40Z</dc:date>
    </item>
  </channel>
</rss>

