Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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