Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
kapil_rthr
Contributor II
Contributor II

Partial Sum is showing incorrect in pivot table

Hi 

Not able to understand why the partial sum is showing incorrectly in the attached figure where as the sum of the productivity column for user 1 should be 66 but its showing wrongly as 58.

2 Solutions

Accepted Solutions
sunny_talwar

Try this

RangeSum(
  Count(DISTINCT {<SEVERITY = {'Blocker'}>} ISSUE_KEY) * 4,
  Count(DISTINCT {<SEVERITY = {'Major'}>} ISSUE_KEY) * 3,
  Count(DISTINCT {<SEVERITY -= {'Blocker', 'Major'}>} ISSUE_KEY) * 2
)

or you can try this

Sum(Aggr(
If(SEVERITY = 'Blocker', Count(DISTINCT ISSUE_KEY) * 4,
If(SEVERITY = 'Major', Count(DISTINCT ISSUE_KEY) * 3, Count(DISTINCT ISSUE_KEY) * 2))
, ASSIGNEE, SEVERITY))

 

View solution in original post

kapil_rthr
Contributor II
Contributor II
Author

awesome, it worked. thanks a lot.

View solution in original post

2 Replies
sunny_talwar

Try this

RangeSum(
  Count(DISTINCT {<SEVERITY = {'Blocker'}>} ISSUE_KEY) * 4,
  Count(DISTINCT {<SEVERITY = {'Major'}>} ISSUE_KEY) * 3,
  Count(DISTINCT {<SEVERITY -= {'Blocker', 'Major'}>} ISSUE_KEY) * 2
)

or you can try this

Sum(Aggr(
If(SEVERITY = 'Blocker', Count(DISTINCT ISSUE_KEY) * 4,
If(SEVERITY = 'Major', Count(DISTINCT ISSUE_KEY) * 3, Count(DISTINCT ISSUE_KEY) * 2))
, ASSIGNEE, SEVERITY))

 

kapil_rthr
Contributor II
Contributor II
Author

awesome, it worked. thanks a lot.