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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
eprehu
Contributor III
Contributor III

Avg variables

eprehu_0-1655282501454.png

 

Hello it is possible to make an avg of a variables? 

thnaks

Labels (1)
3 Replies
MayilVahanan
MVP
MVP

Hi

Hope , those variables are already using some aggregation function like Sum / max. so, its throws error like above.

MayilVahanan_0-1655283961348.png

In order to fix it, pls use Aggr() function like below

Avg(Aggr(urvariables, urdimensions))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
eprehu
Contributor III
Contributor III
Author

hi, 

eprehu_0-1655289011150.png

I don't need to use a dimensions

marcus_sommer
MVP
MVP

You may try it in this way: rangeavg(var1, var2, var3, ...)

- Marcus