<?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: Sum calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1573215#M741073</link>
    <description>&lt;P&gt;Thanks for your answer&lt;BR /&gt;I managed to get the right output with the following LOAD.&lt;/P&gt;&lt;PRE&gt;Ueberleitung:
LOAD ...
Num#(BETRAG_ABGRENZUNG,'#.###,##') as BETRAG_ABGRENZUNG,
Num#(BETRAG_BILANZBUCHUNG,'#.###,##') as BETRAG_BILANZBUCHUNG,
Num#(DIFFERENZ,'#.###,##') as DIFFERENZ,
Num#(VERAENDERUNG_DIFFERENZ,'#.###,##') as VERAENDERUNG_DIFFERENZ;
SQL Select....;

Concatenate(Ueberleitung)

UeSummen:
LOAD ...
SUM(Distinct BETRAG_ABGRENZUNG) as BETRAG_ABGRENZUNG,
SUM(Distinct BETRAG_BILANZBUCHUNG) as BETRAG_BILANZBUCHUNG,
SUM(Distinct DIFFERENZ) as DIFFERENZ,
SUM(Distinct VERAENDERUNG_DIFFERENZ) as VERAENDERUNG_DIFFERENZ
Resident Ueberleitung
Group by LAND, FCO, STICHTAG, UK;


&lt;/PRE&gt;</description>
    <pubDate>Thu, 25 Apr 2019 11:01:31 GMT</pubDate>
    <dc:creator>gf</dc:creator>
    <dc:date>2019-04-25T11:01:31Z</dc:date>
    <item>
      <title>Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572538#M741052</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;is it possible to display subtotals for calculated dimension in a pivot table.&lt;/P&gt;&lt;P&gt;Or is there any other solution with straight table to achive this outcome.&lt;/P&gt;&lt;P&gt;For calculated dimension Betrag_Abgrenzung, Betrag Bilanzbuchung, Differenz and Veränderung should the subtotals be displayed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572538#M741052</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2024-11-16T21:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572575#M741053</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I think you are using complex Expression here. That should be the reason why there is no subtotal.&lt;/P&gt;&lt;P&gt;i would recommend to wrap an sum(aggr(Your_Expression, your_Dimension)) around it.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;tim&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 09:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572575#M741053</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-04-24T09:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572585#M741054</link>
      <description>I tried&lt;BR /&gt;=SUM(AGGR(NUM(BETRAG_ABGRENZUNG,'##.###,##'),UK,SK,SUBKATEGORIE,ZE,ZNR,KOST,BK,KOA,J,N,U,SV_ID,C,T,AEK,K,X,M,BETRAG_ABGRENZUNG))&lt;BR /&gt;as calculated dimension.&lt;BR /&gt;But i get an error.</description>
      <pubDate>Wed, 24 Apr 2019 09:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572585#M741054</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-24T09:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572588#M741057</link>
      <description>Also&lt;BR /&gt;=SUM(AGGR(SUM(DISTINCT BETRAG_ABGRENZUNG),BETRAG_ABGRENZUNG))&lt;BR /&gt;doesn't work.</description>
      <pubDate>Wed, 24 Apr 2019 09:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572588#M741057</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-24T09:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572590#M741059</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/68214"&gt;@gf&lt;/a&gt;&amp;nbsp; Perhaps this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM(AGGR(NUM(Sum(BETRAG_ABGRENZUNG),'##.###,##'),UK,SK,SUBKATEGORIE,ZE,ZNR,KOST,BK,KOA,J,N,U,SV_ID,C,T,AEK,K,X,M,BETRAG_ABGRENZUNG))&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 10:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572590#M741059</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-04-24T10:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572591#M741061</link>
      <description>&lt;P&gt;Since it is calc. dimension - Sum() never work. Perhaps this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AGGR(NUM(Sum(BETRAG_ABGRENZUNG),'##.###,##'),UK,SK,SUBKATEGORIE,ZE,ZNR,KOST,BK,KOA,J,N,U,SV_ID,C,T,AEK,K,X,M,BETRAG_ABGRENZUNG)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 10:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572591#M741061</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-04-24T10:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572607#M741063</link>
      <description>I would Keep the Expression like this but add it as Expression and not as dynamic Dimension:&lt;BR /&gt;You will not get the subtotals in dynamic dimensions. Only in Expressions.&lt;BR /&gt;=SUM(AGGR(NUM(BETRAG_ABGRENZUNG,'##.###,##'),UK,SK,SUBKATEGORIE,ZE,ZNR,KOST,BK,KOA,J,N,U,SV_ID,C,T,AEK,K,X,M,BETRAG_ABGRENZUNG))&lt;BR /&gt;Repeat this for the other 3 dynamic dimensions&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2019 10:38:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572607#M741063</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-04-24T10:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572627#M741064</link>
      <description>Thanks for your answers!&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/63618"&gt;@tim&lt;/a&gt; the problem is i want the columns to stay in their original position. As far as i know expression column will only show at the end of a pivot table.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt; your expression works but subtotals won't display</description>
      <pubDate>Wed, 24 Apr 2019 11:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572627#M741064</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-24T11:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572633#M741065</link>
      <description>You are right. thats not possible in Pivot table.&lt;BR /&gt;But in straight table you can do that&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2019 11:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572633#M741065</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-04-24T11:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572637#M741066</link>
      <description>&lt;P&gt;May you have a look at my sample data.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 11:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572637#M741066</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-24T11:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572640#M741067</link>
      <description>Is it possible to show subtotals in straight table?</description>
      <pubDate>Wed, 24 Apr 2019 11:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572640#M741067</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-24T11:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572651#M741068</link>
      <description>&lt;P&gt;ahh there we go again. no it's not. Just one total row.&lt;/P&gt;&lt;P&gt;I think you're only Chance (maybe there is a workaroung with a lot of work) is to Change the dynamic dimensions to Expression as i said before:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I would Keep the Expression like this but add it as Expression and not as dynamic Dimension:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;You will not get the subtotals in dynamic dimensions. Only in Expressions.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;=SUM(AGGR(NUM(BETRAG_ABGRENZUNG,'##.###,##'),UK,SK,SUBKATEGORIE,ZE,ZNR,KOST,BK,KOA,J,N,U,SV_ID,C,T,AEK,K,X,M,BETRAG_ABGRENZUNG))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Repeat this for the other 3 dynamic dimensions&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;tim&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 11:17:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572651#M741068</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-04-24T11:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572654#M741069</link>
      <description>Thank you tim for your time and consideration. As we say it in german, "Wenn alle Stränge reißen", i will try it as you recommend. Firstly i will (hopefully) find/search a solution where i can solve this problem diretly in the LOAD.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Gf</description>
      <pubDate>Wed, 24 Apr 2019 11:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572654#M741069</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-24T11:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572660#M741070</link>
      <description>yes that is definitely a better solution. Just to make it faster and avoid using dynamic Expressions.&lt;BR /&gt;But you will still have the Problem that you can't Show subtotals on dynamic dimensions.</description>
      <pubDate>Wed, 24 Apr 2019 11:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572660#M741070</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-04-24T11:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572675#M741071</link>
      <description>&lt;P&gt;Subtotal never works as i said before in dimension level.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 11:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1572675#M741071</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-04-24T11:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1573181#M741072</link>
      <description>NOTE: after thinking a bit you can calculate your own Subtotals in script like&lt;BR /&gt;outer join Load&lt;BR /&gt;"TOTAL" as SUBKATEGORIE&lt;BR /&gt;sum(BETRAG_ABGRENZUNG) as BETRAG_ABGRENZUNG,&lt;BR /&gt;sum(BETRAG_2) as BETRAG_2,&lt;BR /&gt;...&lt;BR /&gt;Resident YOUR_TABLE&lt;BR /&gt;GROUP BY "TOTAL"&lt;BR /&gt;;</description>
      <pubDate>Thu, 25 Apr 2019 09:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1573181#M741072</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-04-25T09:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1573215#M741073</link>
      <description>&lt;P&gt;Thanks for your answer&lt;BR /&gt;I managed to get the right output with the following LOAD.&lt;/P&gt;&lt;PRE&gt;Ueberleitung:
LOAD ...
Num#(BETRAG_ABGRENZUNG,'#.###,##') as BETRAG_ABGRENZUNG,
Num#(BETRAG_BILANZBUCHUNG,'#.###,##') as BETRAG_BILANZBUCHUNG,
Num#(DIFFERENZ,'#.###,##') as DIFFERENZ,
Num#(VERAENDERUNG_DIFFERENZ,'#.###,##') as VERAENDERUNG_DIFFERENZ;
SQL Select....;

Concatenate(Ueberleitung)

UeSummen:
LOAD ...
SUM(Distinct BETRAG_ABGRENZUNG) as BETRAG_ABGRENZUNG,
SUM(Distinct BETRAG_BILANZBUCHUNG) as BETRAG_BILANZBUCHUNG,
SUM(Distinct DIFFERENZ) as DIFFERENZ,
SUM(Distinct VERAENDERUNG_DIFFERENZ) as VERAENDERUNG_DIFFERENZ
Resident Ueberleitung
Group by LAND, FCO, STICHTAG, UK;


&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 Apr 2019 11:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1573215#M741073</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-25T11:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1573218#M741074</link>
      <description>Is it possible that i can not format the cell values because of the CONCATENATE?</description>
      <pubDate>Thu, 25 Apr 2019 11:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1573218#M741074</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-25T11:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1573222#M741075</link>
      <description>for concatenate to work correctly both tables should have the exact same columns.&lt;BR /&gt;!! Really think about using sum(Distinct ???)&lt;BR /&gt;!! You only sum each value one time (sum Distinct of {1;1}) = 1</description>
      <pubDate>Thu, 25 Apr 2019 11:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1573222#M741075</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2019-04-25T11:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1573224#M741076</link>
      <description>The tables have the same columns. I just didn't mentioned them because there are round about 20.&lt;BR /&gt;The reason why i used DISTINCT was that sum doubles all my values and i don't know why, with DISTINCT the values are right.</description>
      <pubDate>Thu, 25 Apr 2019 11:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-calculated-dimension/m-p/1573224#M741076</guid>
      <dc:creator>gf</dc:creator>
      <dc:date>2019-04-25T11:10:13Z</dc:date>
    </item>
  </channel>
</rss>

