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: 
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.