<?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: Already perform division in script ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127885#M631095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christina,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I can see a couple of different ways to approach this. If I understand your picture correctly you have four dimensions of which TGL_CS is the most interesting, this is the one that goes horizontally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does each value of TGL_CS correspond to a different calculation you want in the column? If so we can either:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/ Remove this dimension and replace with 18 expressions.&lt;/P&gt;&lt;P&gt;2/ Keep the dimension and have one expression that will be a large Pick(Match( ...)) expression that will perform a different calculation for each value of TGL_CS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check that I have understood this and then if you tell me the expression for [IST 2015 Monat] and [&lt;SPAN style="font-size: 13.3333px;"&gt;IST 2015 Monat ]I'll try to show what I mean for these two calculations then we hopefully add the others afterwards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2016 10:08:19 GMT</pubDate>
    <dc:creator>effinty2112</dc:creator>
    <dc:date>2016-09-01T10:08:19Z</dc:date>
    <item>
      <title>Already perform division in script ?</title>
      <link>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127880#M631090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo QlikView Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the sales margin by dividing two different numbers.&lt;/P&gt;&lt;P&gt;Therefore I want to define a new field. Something like this:&lt;/P&gt;&lt;P&gt;sales margin = sum(sales) / sum(profit)&lt;/P&gt;&lt;P&gt;But because I have many different tables, I want to do it already in the script. Furthermore the answer should be in percent.&lt;/P&gt;&lt;P&gt;Can anybody help me, because I have no Idea how to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127880#M631090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T09:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Already perform division in script ?</title>
      <link>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127881#M631091</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 something like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum(sales) / sum(profit) as Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident TableA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127881#M631091</guid>
      <dc:creator>amit_saini</dc:creator>
      <dc:date>2016-09-01T09:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Already perform division in script ?</title>
      <link>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127882#M631092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you really want to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you define this ratio in the script, like &lt;A href="https://community.qlik.com/qlik-users/135365"&gt;amit.saini&lt;/A&gt;‌ suggests, you will get number that looks OK &lt;SPAN style="font-size: 13.3333px;"&gt;(if you use a GROUP BY in the load)&lt;/SPAN&gt;. However, this is a &lt;STRONG&gt;&lt;EM style="text-decoration: underline;"&gt;static&lt;/EM&gt;&lt;/STRONG&gt; number that does not change when you make selections. But if you instead want a dynamic number that respects your selection, you should use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(sales) / sum(profit) &lt;/SPAN&gt; as a measure in an object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127882#M631092</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2016-09-01T09:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Already perform division in script ?</title>
      <link>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127883#M631093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christina,&lt;/P&gt;&lt;P&gt;I think the best idea would be to calculate such ratios &lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;in the user interface &lt;SPAN style="font-size: 13.3333px;"&gt;(BTW this is the ratio you may need: &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(profit)/&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;sum(sales) &lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If you calculate them at record level (in the script) then you can't do much with them at a higher level. If you work out a margin at an order line level aggregating the values of these ratios is meaningless.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you create a chart which sums your sales and your profit then that is where you should put your sales margin calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127883#M631093</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-09-01T09:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Already perform division in script ?</title>
      <link>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127884#M631094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/136247_Unbenannt.PNG" style="width: 620px; height: 117px;" /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick answer!&lt;/P&gt;&lt;P&gt;So the Problem is, that I have two different dimensions( please don't be disturb by the German !)&lt;/P&gt;&lt;P&gt;On the one hand side I want to have the different Quartals and Budget and stuff like this . (column)&lt;/P&gt;&lt;P&gt;But on the other side I also want to have different Values for order, sales, margin, profit etc.! (line)&lt;/P&gt;&lt;P&gt;I already managed to do this with maaany if formulas, but if I then have to calculate something too, it is just getting to complicated and long...&lt;/P&gt;&lt;P&gt;So if there is a formula like &lt;SPAN lang="en"&gt;VLOOKUP&lt;/SPAN&gt; in excel, that would also help me!&lt;/P&gt;&lt;P&gt;For example: If the Title is 'sales' then pick the sales value&lt;/P&gt;&lt;P&gt;Okay I hope somebody understands my problem ^^ &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 09:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127884#M631094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T09:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Already perform division in script ?</title>
      <link>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127885#M631095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christina,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I can see a couple of different ways to approach this. If I understand your picture correctly you have four dimensions of which TGL_CS is the most interesting, this is the one that goes horizontally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does each value of TGL_CS correspond to a different calculation you want in the column? If so we can either:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/ Remove this dimension and replace with 18 expressions.&lt;/P&gt;&lt;P&gt;2/ Keep the dimension and have one expression that will be a large Pick(Match( ...)) expression that will perform a different calculation for each value of TGL_CS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check that I have understood this and then if you tell me the expression for [IST 2015 Monat] and [&lt;SPAN style="font-size: 13.3333px;"&gt;IST 2015 Monat ]I'll try to show what I mean for these two calculations then we hopefully add the others afterwards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 10:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127885#M631095</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-09-01T10:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Already perform division in script ?</title>
      <link>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127886#M631096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interesting point is not tgl but Titel!&lt;/P&gt;&lt;P&gt;One definition of one formula is now:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Auftragseingang' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[AE_Gesamt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Umsatz' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Umsatz_Gesamt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Auftragsbestand' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[AB Gesamt]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Vertriebsspanne' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VSP_Gesamt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VSP in %' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;VSP_Gesamt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Umsatz_Gesamt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Suko op/nop' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Sonstige Umsatzkosten (op/nop)]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Bruttoergebnis' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Bruttoergebnis absolut]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Bruttoergebnis in %' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Bruttoergebnis absolut]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Umsatz_Gesamt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Vertriebskosten' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Vertriebskosten&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Vertriebskosten in %' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Vertriebskosten&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Umsatz_Gesamt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Vertriebskosten_op' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Vertriebskosten_Op&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Vertriebskosten_N_op' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Vertriebskosten_N_Op&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Sonstige Kosten' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;sonstige_Kosten&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Ergebnis' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Ergebnis&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Titel&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Ergebnis in %' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='VJ MS', &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Ergebnis&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Umsatz_Gesamt&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))))))))))))))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;So it is quite huge! And some of them are even more complicated (the one with the %) Maybe I can do some matching, like you offered? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;And than it would be easier to calculate in the formula?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you very much!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Kind regards &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Christina &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 11:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127886#M631096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-02T11:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Already perform division in script ?</title>
      <link>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127887#M631097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chistina,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; That is a horribly large expression and you say that it is only one of them! I think your best friend here will be the Variable Overview found in the Settings Menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would take out the &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;='VJ MS' &lt;/SPAN&gt; parts and save this in a variable and call it something like vIfCatIsVJ_MS. This variable could then be referred to when &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;cat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;='VJ MS' &lt;SPAN style="font-size: 13.3333px;"&gt;is true.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how familiar you are with the use of QlikView variables but when you've saved the definition of this variable you can then refer to the variable like so: $(&lt;SPAN style="font-size: 13.3333px;"&gt;vIfCatIsVJ_MS), called a dollar sign expansion (&lt;SPAN style="font-size: 13.3333px;"&gt;DSE&lt;/SPAN&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a different variable for each value of Cat and refer to each one by DSE and put them all on a straight table as separate expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to a variable inside another .If Cat takes on, let's say three values (call them '&lt;SPAN style="font-size: 13.3333px;"&gt;VJ_MS', 'Neil, 'Alex'&lt;/SPAN&gt;) you can have an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vWhatever = Pick(Match(&lt;SPAN style="font-size: 13.3333px;"&gt;Cat, &lt;SPAN style="font-size: 13.3333px;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;VJ_MS', 'Neil, 'Alex'), &lt;SPAN style="font-size: 13.3333px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vIfCatIsVJ_MS),&lt;SPAN style="font-size: 13.3333px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vIfCatIs&lt;SPAN style="font-size: 13.3333px;"&gt;Neil&lt;/SPAN&gt;),&lt;SPAN style="font-size: 13.3333px;"&gt;$(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vIfCatIs&lt;SPAN style="font-size: 13.3333px;"&gt;Alex&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can write the above as a nested &lt;EM&gt;if&lt;/EM&gt; statement if you prefer of course. This variable vWhatever takes care of an array of possibilities, a range of values of Titel contained in your original expression and a range of values for Cat. Perhaps such an approach may help you to get a single expression you can use in a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not possible to give firm advice when I know so little about your application but I hope this points you in a direction that will get you nearer your goal and not lead you into a blind alley.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tschüss!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 16:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Already-perform-division-in-script/m-p/1127887#M631097</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-09-02T16:01:06Z</dc:date>
    </item>
  </channel>
</rss>

