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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Total value in a Pivot table by Set Analysis

Hi everyone,

I havea table like this

CountryMonthSales
Spain145
Germany132
Italy122
France110
Spain212
Germany234
Italy221
France211
Spain38
Germany332
Italy312
France310

and I´d like to made a Pivot Table with Country and Month like Dimensions and SUM(Sales) in Expression, it is easy but also I´d like to add another Expression where I could see the Total Sales of every Month in every row for every Country.

I mean, I´d like to get something like this.

For Example, if Month='1' the Total Sales is '109' so I´d like to get this value an put it in a new column for every row.

Month112233
Country
SalesTotal SalesSalesTotal SalesSalesTotal Sales
France1010911781062
Germany3210934783262
Italy2210921781262
Spain451091278862
Total10910978786262

Maybe it could be possible to do by Set Analysis in the new column, but the problem is that in my pivot table has two dimensions (Country and Month) and I have to try to avoid the Country Dimension to get the right value isn,t it?

Thanks a lot

1 Solution

Accepted Solutions
Not applicable
Author

Hi Eduardo,

In the second expression "Total Sales", you try this code.


Sum(Total <Month> Sales)


View solution in original post

2 Replies
Not applicable
Author

Hi Eduardo,

In the second expression "Total Sales", you try this code.


Sum(Total <Month> Sales)


Not applicable
Author

Thanks a lot !!!