Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
astitzel
Partner - Contributor II
Partner - Contributor II

Use count distinct as input to sum formula

I am trying to structure a formula using both count and sum and I keep getting a nested aggregation error. I am trying to use a distinct count of ExecutionIDs as an input to a sum formula (see below).

 

sum(if ([Executed On.autoCalendar.Date]>=[OLFT Start], count(distinct [ExecutionId]))*[Story Points])

 

Is there anyway to calculate a distinct count value as an input to a larger sum formula?

Labels (5)
1 Reply
Anil_Babu_Samineni

May be try this

Sum(if ([Executed On.autoCalendar.Date]>=[OLFT Start], count(distinct [ExecutionId])*[Story Points]))
Or
Sum(Aggr(if ([Executed On.autoCalendar.Date]>=[OLFT Start], count(distinct [ExecutionId])*[Story Points]), Dim))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful