Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
BI & Data Trends 2021. Discover the top 10 trends emerging in today. Join us on Dec. 8th REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator III
Creator III

Avg() function with Aggr on Reference line producing wrong results.

I've a bar chart with following Dimension and Expression.

Dimension01: ProductName& ' '& Levels

Dimension02: =if(match(Country,'China'),Country)

Expression = sum(interval(([EndDate])-([StartDate]),'D'))

Reference Line Expression: =Avg(Aggr(interval(([EndDate])-([StartDate]),'D'),[ProductName] & ' '& [Levels]))

Someone correct me on my Reference line expression? Thanks

Labels (2)
0 Replies