Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
kchamot
Contributor
Contributor

Total for each Date in pivot table

I need to sum(value) for each date in pivot table

Data I got, rows is 'Type', columns is 'Date', measure is 'Sum(Value)'

  Date
Type 01.01.2025 02.01.2025
A 1 2
B 2 4
C 3 6
TOTAL 6 12

Output I need :

  01.01.2025 02.01.2025
A 6 12
B 6 12
C 6 12
TOTAL 6 12

 

What I tried :

  01.01.2025 02.01.2025
Type Sum(Value)   Sum({<[Type]=>} Value)  Sum(TOTAL <Date> Value) aggr(Sum(Value), Date)  Sum(Value)   Sum({<[Type]=>} Value)  Sum(TOTAL <Date> Value) aggr(Sum(Value), Date) 
A 1 1 18 - 2 2 18 12
B 2 2 18 - 4 4 18 12
C 3 3 18 6 6 6 18 12
TOTAL 6 6 18 6 12 12 18 12

 

What am I doing wrong ?

 

Labels (4)
2 Replies
henrikalmen
Specialist II
Specialist II

Try Sum(TOTAL <Type> Value)

Bhushan_Mahajan
Creator II
Creator II

@kchamot I did below process:

1. Inline Load

ABC:
load * Inline [
Type,01.01.2025,02.01.2025
A,1,2
B,2,4
C,3,6
];

Then in the front end, take a table chart and put below expression.

Bhushan_Mahajan_0-1736501688629.png