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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
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 (4)
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