Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
sarfaraz_sheikh
Contributor III
Contributor III

Pivot Table showing Wrong Total

Dear All,

Why My Pivot table is showing wrong total.....please check suggest me where i am doing wrong....

My QVW and Snapshot is attached here.

Sarfaraz

1 Solution

Accepted Solutions
rubenmarin

Hi, maybe:

=Sum(Aggr(Sum(SALARY), Remarks))

BTW, I think your original values were correct, as this is duplicating salaries located in more than one Remark

View solution in original post

9 Replies
sarfaraz_sheikh
Contributor III
Contributor III
Author

Dear all,

Below is the snapshot for the same...

Pivot_Total.png
sarfaraz

rubenmarin

Hi Sarfaraz, that document doesn't have any chart, seems you uploaded before saving or uploaded another document.

MK_QSL
MVP
MVP

Ruben.... No data also...

rubenmarin

Right.

Anyway I think Sarfaraz is looking for an expression in second table like:

Sum({<D_NO={"*"} SALARY)

or

Sum({<D_NO*={"*"} SALARY)

or

Aggr(Sum(SALARY), D_NO)

Well it seems not, problem was the first table.

sarfaraz_sheikh
Contributor III
Contributor III
Author

Please find the attached QVW .

Sarfaraz

MK_QSL
MVP
MVP

Hi Sarfaraz,

What should be the Total Salary as per your requirement ?

rubenmarin

Hi, maybe:

=Sum(Aggr(Sum(SALARY), Remarks))

BTW, I think your original values were correct, as this is duplicating salaries located in more than one Remark

sarfaraz_sheikh
Contributor III
Contributor III
Author

Hi Manish,

The total salary should be sum of all rows  in both the table...However one table showing correct total and onother one is showing wrong total .

sarfaraz

sarfaraz_sheikh
Contributor III
Contributor III
Author

Hi Ruben,

Your solution is working as expected ....Thanks a lot for help !!!!!!

Sarfaraz