<?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 Expression as a dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607244#M546017</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 would like to have a bar chart with document type (Invoices, Orders, Quotations) as a dimension and the Rand values as an expression. The client also want to see the sum(budget) as a separate dimension as per image below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does one show an expression as a separate dimension?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chart.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/55579_chart.png" style="width: 620px; height: 275px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2014 13:13:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-21T13:13:55Z</dc:date>
    <item>
      <title>Expression as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607244#M546017</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 would like to have a bar chart with document type (Invoices, Orders, Quotations) as a dimension and the Rand values as an expression. The client also want to see the sum(budget) as a separate dimension as per image below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does one show an expression as a separate dimension?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chart.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/55579_chart.png" style="width: 620px; height: 275px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 13:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607244#M546017</guid>
      <dc:creator />
      <dc:date>2014-03-21T13:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607245#M546018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to add a new dimension to your data set that is add a field "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;document type&lt;/SPAN&gt;" associated to your document (when you load or select) and use it as dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 13:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607245#M546018</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-21T13:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607246#M546019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In you script&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;make &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Load&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(budget)&amp;nbsp; as Sum_Budget from data source;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;then add&amp;nbsp; (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum_Budget)&amp;nbsp; into your Dimension &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope your problem get solved&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;On Dimension tab see add calculated Dimension as &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(budget)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if you want label it &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 13:24:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607246#M546019</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-03-21T13:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607247#M546020</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;Thx for the reply. I've already got DocType as a dimension in the model so it's not a problem showing the sum of the values per doc type. The problem is showing the total of the budget as a dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 14:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607247#M546020</guid>
      <dc:creator />
      <dc:date>2014-03-21T14:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607248#M546021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post your document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 14:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607248#M546021</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-21T14:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607249#M546022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;SCRIPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Table: load 1500 as budget AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CHART&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;dimension&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ValueList('Invoices', 'Orders', 'Quotations', 'Budget')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expression&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;if(match(ValueList('Invoices', 'Orders', 'Quotations', 'Budget'), 'Invoices', 'Orders', 'Quotations'),&lt;/P&gt;&lt;P&gt;rand()*1000,&lt;/P&gt;&lt;P&gt;sum(budget)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-03-21 23_37_14-QlikView x64 - [C__Users_mgrossi_Desktop_Z.qvw_].png" class="jive-image" src="/legacyfs/online/55614_2014-03-21 23_37_14-QlikView x64 - [C__Users_mgrossi_Desktop_Z.qvw_].png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 22:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607249#M546022</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-03-21T22:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607250#M546023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil&lt;/P&gt;&lt;P&gt;My script looks like this&lt;/P&gt;&lt;P&gt;SALES:&lt;BR /&gt;Load &lt;BR /&gt;Date(DocDate) as DocDate,&lt;BR /&gt;FinncPriod,&lt;BR /&gt;ObjType,&lt;BR /&gt;slpcode,&lt;BR /&gt;slpname,&lt;BR /&gt;Turnover;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SQL SELECT Branch,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DocDate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FinncPriod,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ObjType,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; slpcode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; slpname,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Turnover&lt;BR /&gt;&amp;nbsp; FROM dbo."XBI_SalelinesNew";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;BR /&gt;Load&lt;BR /&gt;Budget as Target,&lt;BR /&gt;Fincpriod as FinncPriod,&lt;BR /&gt;Name as slpname,&lt;BR /&gt;SlpCode as slpcode&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT Budget,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fincpriod,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SlpCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "U_Year"&lt;BR /&gt;FROM dbo."XBI_SalesBudgetIncludingEmpCode";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All goes well up tp here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then want to do your suggestion '&lt;SPAN style="font-size: 10pt;"&gt;Load&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(budget)&amp;nbsp; as Sum_Budget from data source&lt;/SPAN&gt;' to make a new dimension so -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BudgetTotals:&lt;BR /&gt;Load&lt;BR /&gt;slpcode,&lt;BR /&gt;Sum(Target) as TargetDimension&lt;BR /&gt;Resident SALES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I get this error&lt;/P&gt;&lt;P&gt;Invalid expression&lt;BR /&gt;BudgetTotals:&lt;BR /&gt;Load&lt;BR /&gt;slpcode&lt;BR /&gt;Sum(Target) as TargetDimension&lt;BR /&gt;Resident SALES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't see where I'm making the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2014 05:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607250#M546023</guid>
      <dc:creator />
      <dc:date>2014-03-22T05:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607251#M546024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;you are&amp;nbsp; making&amp;nbsp; "&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt; line-height: 1.5em;"&gt;Budget as Target" field&amp;nbsp; leave as it is Budget then use like&amp;nbsp; below &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;BudgetTotals:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;slpcode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Budget &lt;/SPAN&gt;) as TargetDimension&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Resident SALES;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;you can directly use&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Budget &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;) &lt;/SPAN&gt; in your calculated dimension these not make any difference&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2014 06:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607251#M546024</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2014-03-22T06:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expression as a dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607252#M546025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Massimo&lt;/P&gt;&lt;P&gt;Thx for the reply - I'm getting close now but my totals in the chart is wrong - probably something small. See image below - I've added the correct values in text boxes below. When I implement your suggestion - Am I not getting budget (target) amounts per doc type and the total budget (target) as a separate column? What I need is the&lt;SPAN style="text-decoration: underline;"&gt; turnover&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum(Turnover) per doc type and the Sum(Target) as separate column like in your chart. The chart looks exactly like I want it - it's just the totals that are incorrect.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chart.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/55620_chart.png" style="width: 620px; height: 183px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2014 06:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-as-a-dimension/m-p/607252#M546025</guid>
      <dc:creator />
      <dc:date>2014-03-22T06:32:36Z</dc:date>
    </item>
  </channel>
</rss>

