
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Average Formula in Qlik Sense
Hi All,
I wan to get average of my this total value. The formula giving me error. What I am doing wrong here?
Avg(sum([VisitA])+sum([VisitB])+sum([VisitC]))
How can I get the average in my formula for my measure. Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to use Aggr() function
Avg(Aggr(sum([VisitA])+sum([VisitB])+sum([VisitC]), <Dimension/sHere>))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Thanks.
I used the following formula, but its doesn't give me any result.
Avg(Aggr(sum([VisitA])+sum([VisitB])+sum([VisitCt]), <[MDate.autoCalendar.Fiscal Quarter],[MDate.autoCalendar.Fiscal Year]>))
I used Measure
sum([VisitA])+sum([VisitB])+sum([VisitC]) and
Dimensions ,[MDate.autoCalendar.Fiscal Quarter,] [MDate.autoCalendar.Fiscal Year] for
other chart and trying the same for average.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
<> were just to highlight, not needed in the expression
Avg(Aggr(sum([VisitA])+sum([VisitB])+sum([VisitCt]), [MDate.autoCalendar.Fiscal Quarter],[MDate.autoCalendar.Fiscal Year]))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. the formula gives result same as total. No as average.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Would you be able to share a screenshot?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Left chart has measure with only total formula and same dimension. Right one has average formula same dimension

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure what you are expecting to see when you dimensions are the same? May be you want
Avg([VisitA]) + Avg([VisitB]) + Avg([VisitCt])

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Actually I need Avg([Follow-Up]+[Initial Visit]+[Indirect])
This solved my problem. Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @sunny_talwar It is working at overall level i.e if we have data for 4 years it will give average of all those years and for getting average of particular year we have to select that year.
What if we want to get different average of each year without any filter selection.
=Avg(Aggr(COUNT(DISTINCT <Expression>,<Dimenssion>]))
