How do I format while trying to Average?

From SmartWiki
Revision as of 11:53, 24 March 2009 by Thu (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Q: How do I format while trying to Average?

A: format(AVG(if([this]='criteria',[this],0)),2))

Why do we do this?

If we want to run an average of values for a particular set of data in conjunction with a 2 decimal format, we need to use this format to accomplish what we want.