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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
jbakerstull
Creator
Creator

Average Age by gender

I'm trying to figure out who to write a formula for average age by gender type.

I've tried: but the result is '-'

=Avg( {$<[SVPPROFGENDER_entry] ='Female'>} Aggr(Avg(floor(Age('4/1/2018',[SVPPROFDOB_entry]))),[Client Id],[SVPPROFDOB_entry]))

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this... but is this only needed for Female?

=Avg({$<[SVPPROFGENDER_entry] = {'Female'}>} Aggr(Avg(Floor(Age('4/1/2018', [SVPPROFDOB_entry]))), [Client Id], [SVPPROFDOB_entry]))

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be this... but is this only needed for Female?

=Avg({$<[SVPPROFGENDER_entry] = {'Female'}>} Aggr(Avg(Floor(Age('4/1/2018', [SVPPROFDOB_entry]))), [Client Id], [SVPPROFDOB_entry]))

jbakerstull
Creator
Creator
Author

Thank you very much. Hope your day goes well.