<?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/1383046#M810306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, importante detail! Now I have another question: can I change the formula using a variable? I want to offer the user the possibility to chsnge this dimension on his demand. Sometimes I want this dimension to show new sales on one dimension, sometimes the other, and sometimes a combination of two or even three dimension... The formal now is clear. So I've created a variable, VCritDimension, and definied the variable as Article and the formula in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr(If(Sum ({&amp;lt;Y= {$(=Max(Y))}&amp;gt;}[Sales])&amp;gt;=Sum ({&amp;lt;Y= {$(=Max(Y)-1)}&amp;gt;}[Sales]),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'New sale',0), VCritDimension)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But it doesn't work. Why? What should I do ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Oct 2017 04:46:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-03T04:46:38Z</dc:date>
    <item>
      <title>Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383044#M810304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;I have a pivot table which shows sales per several existing dimensions (ie customers, articles...), and I'm showing the selected and previous year's sales.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Now I want to create a calculted dimension which indicates if it's a new sale, an increased sale, a lost sale or decreasing sale. I've started to get the first one done, but I'm not able. I think that once that case cleared, I will find teh other cases out by myself...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm no using this formula as a calculated dimension:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=Aggr(If(Sum ({&amp;lt;Y= {$(=Max(Y))}&amp;gt;}[Sales])&amp;gt;=Sum ({&amp;lt;Y= {$(=Max(Y)-1)}&amp;gt;}[Sales]),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'New sale'),0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383044#M810304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383045#M810305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use Aggr you have to mention your dimensions in your Aggr like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(If(Sum ({&amp;lt;Y= {$(=Max(Y))}&amp;gt;}[Sales])&amp;gt;=Sum ({&amp;lt;Y= {$(=Max(Y)-1)}&amp;gt;}[Sales]),&lt;/P&gt;&lt;P&gt;'New sale',0), &lt;STRONG&gt;YourDimensionFields&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 21:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383045#M810305</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-10-02T21:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383046#M810306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, importante detail! Now I have another question: can I change the formula using a variable? I want to offer the user the possibility to chsnge this dimension on his demand. Sometimes I want this dimension to show new sales on one dimension, sometimes the other, and sometimes a combination of two or even three dimension... The formal now is clear. So I've created a variable, VCritDimension, and definied the variable as Article and the formula in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Aggr(If(Sum ({&amp;lt;Y= {$(=Max(Y))}&amp;gt;}[Sales])&amp;gt;=Sum ({&amp;lt;Y= {$(=Max(Y)-1)}&amp;gt;}[Sales]),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'New sale',0), VCritDimension)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But it doesn't work. Why? What should I do ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2017 04:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383046#M810306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-03T04:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383047#M810307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the variable contains a comma separated list of the dimensions, you could expand it like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Aggr(If(Sum ({&amp;lt;Y= {$(=Max(Y))}&amp;gt;}[Sales])&amp;gt;=Sum ({&amp;lt;Y= {$(=Max(Y)-1)}&amp;gt;}[Sales]),&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;'New sale',0), $(VCritDimension))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;=Aggr(If(Sum ({&amp;lt;Y= {$(=Max(Y))}&amp;gt;}[Sales])&amp;gt;=Sum ({&amp;lt;Y= {$(=Max(Y)-1)}&amp;gt;}[Sales]),&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;'New sale',0), $(=VCritDimension))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;There a lot of factors to consider here, so I suggest that you upload a sample qvw with some representative data and the sheet object that you are trying to build. It does not need to be real data, but it should illustrate the data structure and the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2017 04:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383047#M810307</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-10-03T04:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383048#M810308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx&lt;SPAN style="font-size: 10pt;"&gt; Vishwarath and Jonathan! I'm gonna work on this, it seems to be the correct way!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2017 06:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383048#M810308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-03T06:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383049#M810309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a newbee, after some struggling, I've got what I wanted! Just some questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to easily check, I attach the file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I choose to apply on the calculated dimension &lt;EM&gt;origen, articulo&lt;/EM&gt; using the button or the other button which calculates the dimension by &lt;EM&gt;origen, [Cliente NIF]&lt;/EM&gt;, is there a way to automatically change the order of the two dimensions articulo and [Cliente NIF]? In the first case I want Article in the second column, and [Cliente NIF] in the third, in the other case just the reverse (&lt;SPAN style="font-size: 13.3333px;"&gt;[Cliente NIF] in the second one, and article in the third column).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;And is it also possible to automatically expand??&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Oct 2017 22:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383049#M810309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-03T22:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383050#M810310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if that possible but a low grade workaround would be using a variable and hide and show two tables. Like in attached.&lt;/P&gt;&lt;P&gt;Create a variable vPosition using Ctrl+Alt+V.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when you press 1st the first table will have article as 2nd col and Cliente as thrid. When you press other button it will show reverse.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 01:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383050#M810310</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-10-04T01:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383051#M810311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just by creating the variable vPosition and using it as an action in the Button? Or should I refer to the variable in the table or something like that?? I'm sorry for my ignorance but's it's like chinese for me!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 17:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383051#M810311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-04T17:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383052#M810312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes in your table properties layout tab you can see two radio buttons so use like below &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/178638_Capture.PNG" style="height: 431px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Can you open my qvw file which i attached. If yes then go to chart properties and look for Conditional like above snapshot. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Oct 2017 18:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383052#M810312</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-10-04T18:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383053#M810313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, didn't see that, and I didn't knew it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, now I have it all as I wanted in the small ejemplo.qvw and now I'm introducing it into the definitive file. And surprise, surprise, I'm having troubles...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The original and working dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(If(Sum ({&amp;lt;Y= {$(=Max(Y))}&amp;gt;}[Venta Neta])=0,'- Ventas perdidas',If(Sum ({&amp;lt;Y= {$(=Max(Y)-1)}&amp;gt;}[Venta Neta])=0,'+ Nuevas ventas',If(Sum ({&amp;lt;Y= {$(=Max(Y))}&amp;gt;}[Venta Neta])&amp;gt;=Sum ({&amp;lt;Y= {$(=Max(Y)-1)}&amp;gt;}[Venta Neta]),'+ Incremento ventas',&lt;/P&gt;&lt;P&gt;If(Sum ({&amp;lt;Y= {$(=Max(Y))}&amp;gt;}[Venta Neta])&amp;lt;Sum ({&amp;lt;Y= {$(=Max(Y)-1)}&amp;gt;}[Venta Neta]),'- Disminución ventas',0)))),$(=VCritDimension))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is working with the vales &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum ({&amp;lt;Y= {$(=Max(Y))}&amp;gt;}[Venta Neta])&lt;/STRONG&gt; and &lt;STRONG&gt;Sum ({&amp;lt;Y= {$(=Max(Y)-1)}&amp;gt;}[Sales])&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In the target file these (working) formulas are:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If(subfield(GetFieldSelections(Origen,'||'),'||',1)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',1) = 'Budget',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Y = {"$(=[Año 1])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta]),&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Isnull(subfield(GetFieldSelections(Origen,'||'),'||',2)),&lt;/P&gt;&lt;P&gt;If(subfield(GetFieldSelections(Origen,'||'),'||',1)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',1) = 'Budget',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Y = {"$(=[Año 2])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta])),&lt;/P&gt;&lt;P&gt;If(subfield(GetFieldSelections(Origen,'||'),'||',2)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',2) = 'Budget',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Y = {"$(=[Año 2])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',2))"}&amp;gt;}[Venta Neta]),&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But simply replacing the two formulas is not giving any result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the formula:&lt;/P&gt;&lt;P&gt;=Aggr(If(If(subfield(GetFieldSelections(Origen,'||'),'||',1)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',1) = 'Budget',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Y = {"$(=[Año 1])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta]),&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta]))=0,'Ventas perdidas',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(If(Isnull(subfield(GetFieldSelections(Origen,'||'),'||',2)),&lt;/P&gt;&lt;P&gt;If(subfield(GetFieldSelections(Origen,'||'),'||',1)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',1) = 'Budget',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Y = {"$(=[Año 2])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta])),&lt;/P&gt;&lt;P&gt;If(subfield(GetFieldSelections(Origen,'||'),'||',2)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',2) = 'Budget',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Y = {"$(=[Año 2])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',2))"}&amp;gt;}[Venta Neta]),&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta])))=0,'Ventas nuevas',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(If(subfield(GetFieldSelections(Origen,'||'),'||',1)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',1) = 'Budget',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Y = {"$(=[Año 1])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta]),&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta]))&amp;gt;=If(Isnull(subfield(GetFieldSelections(Origen,'||'),'||',2)),&lt;/P&gt;&lt;P&gt;If(subfield(GetFieldSelections(Origen,'||'),'||',1)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',1) = 'Budget',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Y = {"$(=[Año 2])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta])),&lt;/P&gt;&lt;P&gt;If(subfield(GetFieldSelections(Origen,'||'),'||',2)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',2) = 'Budget',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Y = {"$(=[Año 2])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',2))"}&amp;gt;}[Venta Neta]),&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta]))),'Incremento ventas',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(If(subfield(GetFieldSelections(Origen,'||'),'||',1)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',1) = 'Budget',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Y = {"$(=[Año 1])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta]),&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta]))&amp;lt;If(Isnull(subfield(GetFieldSelections(Origen,'||'),'||',2)),&lt;/P&gt;&lt;P&gt;If(subfield(GetFieldSelections(Origen,'||'),'||',1)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',1) = 'Budget',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Y = {"$(=[Año 2])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta])),&lt;/P&gt;&lt;P&gt;If(subfield(GetFieldSelections(Origen,'||'),'||',2)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',2) = 'Budget',&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Y = {"$(=[Año 2])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',2))"}&amp;gt;}[Venta Neta]),&lt;/P&gt;&lt;P&gt;Sum ({&amp;lt;Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta]))),'Disminución ventas',0)))),$(=VCritDimension))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 20:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383053#M810313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-05T20:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383054#M810314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you create respective variables in your final file where you are copying into? Are the field names same with your example file and your original file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 20:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383054#M810314</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-10-05T20:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383055#M810315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I did. As a matter of fact, the formulas used in the expressions perfectly show the correct numbers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This formula shows the Sum of [Venta Neta] related to the [Año 1] selected and depends if there is one first selected Origen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(subfield(GetFieldSelections(Origen,'||'),'||',1)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',1) = 'Budget',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum ({&amp;lt;Y = {"$(=[Año 1])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta]),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum ({&amp;lt;Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta]))&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This formula show teh Sum of [Venta Neta] related the [Año 2] selected and depends if there are one or two origens selected. Both formulas work perfectly...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Isnull(subfield(GetFieldSelections(Origen,'||'),'||',2)),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(subfield(GetFieldSelections(Origen,'||'),'||',1)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',1) = 'Budget',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum ({&amp;lt;Y = {"$(=[Año 2])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta])),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(subfield(GetFieldSelections(Origen,'||'),'||',2)='Real' or subfield(GetFieldSelections(Origen,'||'),'||',2) = 'Budget',&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum ({&amp;lt;Y = {"$(=[Año 2])"}, Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',2))"}&amp;gt;}[Venta Neta]),&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum ({&amp;lt;Origen = {"$(=subfield(GetFieldSelections(Origen,'||'),'||',1))"}&amp;gt;}[Venta Neta])))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 20:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383055#M810315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-05T20:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383056#M810316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vishwarath, I got it, I have a problem with vCritDimension!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 20:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383056#M810316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-05T20:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383057#M810317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 21:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension/m-p/1383057#M810317</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-10-05T21:06:56Z</dc:date>
    </item>
  </channel>
</rss>

