Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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

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

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.