Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

average function

can anyone tell me where the error is in this please?

AVG(

IF(

min(FLOOR([Work Order First Response Date])) > Max(FLOOR([Work Order Request Date])),

networkdays(Max(FLOOR([Work Order Request Date])), min(FLOOR([Work Order First Response Date]))),

networkdays(min(FLOOR([Work Order First Response Date])), Max(FLOOR([Work Order Request Date])))

)

)-1

1 Reply
sunny_talwar

You are trying to use an aggregation within an aggregation without using the Aggr() function

AVG(

Aggr(

IF(

min(FLOOR([Work Order First Response Date])) > Max(FLOOR([Work Order Request Date])),

networkdays(Max(FLOOR([Work Order Request Date])), min(FLOOR([Work Order First Response Date]))),

networkdays(min(FLOOR([Work Order First Response Date])), Max(FLOOR([Work Order Request Date])))

)

, AggregatingDimension/s)

)-1