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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
pgalvezt
Specialist
Specialist

Average Cumulative With 1 Value

Hello,

I´m Looking for a formula that can calculate the avg total in QlikView.

I have a count of names and months I need to show the cumulative average by month.

I put an excel file with what I want.

My Dimensio is Month

My Expression is Count(Names)

I need the cumulative average by month

Thanks...

Labels (1)
1 Solution

Accepted Solutions
jerem1234
Specialist II
Specialist II

you can try:

rangeavg(above(count(Names), 0, rowno()))

Hope this helps!

View solution in original post

5 Replies
jerem1234
Specialist II
Specialist II

you can try:

rangeavg(above(count(Names), 0, rowno()))

Hope this helps!

MK_QSL
MVP
MVP

Check enclosed file...

pgalvezt
Specialist
Specialist
Author

Hi Jerem,

How can I obtain the total (Annual)?

Thanks

MK_QSL
MVP
MVP

IF(Dimensionality()=0,Sum(Sales)/Count(Distinct Month), RangeAvg(Above(SUM(Sales),0,RowNo())))

jerem1234
Specialist II
Specialist II

What do you mean by total (Annual)?

Do you mean the avg of all the months? You can get that with avg(total aggr(count(Names), Month)).

If you want it to appear in the total section of your column you are accumulating, you'll need to separate it out using dimensionality() like:

if(dimensionality()=0, avg(total aggr(count(Names), Month)), rangeavg(above(count(Names), 0, rowno())))

Hope this helps!