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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
tmumaw
Specialist II
Specialist II

Sum Logic

Hello All,

Need a little help on a calculation. On one pivot table I am showing Avg No. of employees by month and year.  On the other pivot table I am showing the same data only adding Reason.  I need to show the Avg  No of employees on both tables.  I am using the same calculation on both, but the one with reason added is showing something different. Here is my calculation I use on both pivot tables.

sum({<YTDFlag = {1}>}EmpCt_ZEMPCT) / Count({<EmpDays = {1}, YTDFlag = {1}>}DISTINCT(Date_ZWKDATE))

First pivot table is by Office, Year and Month and the other is by Office, Year, Month and Reason.

13 Replies
Digvijay_Singh

I mean why TOTAL and AGGR are showing different results?

sunny_talwar

Have been seen this issue in some of the cases now. Not sure what causes is, but sometime it happens when there is a calculated dimension involved.

swuehl
MVP
MVP

May your Reason show NULL?

pablolabbe
Partner Ambassador
Partner Ambassador

When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others