Is there a way to infer the age of participants from date of birth template question? MM,DD,YYY | XM Community
Skip to main content
Question

Is there a way to infer the age of participants from date of birth template question? MM,DD,YYY

  • June 22, 2021
  • 1 reply
  • 50 views

Hi everyone,
I have used one of the Qualtrics library questions on date of birth (MM, DD, YYYY) and I have published my survey and got some responses from participants. I'm analyzing my data and I was wondering whether there is a way to infer the age of participants directly from the date of birth template question, so that it is shown directly in the data and analysis tab.
Thank you so much

1 reply

grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+13
  • QPN Level 3 ●●●
  • June 28, 2021

No there isn't. You'd need to analyze the age based on the year they mentioned and then just substract the year with this year and you will have your data punched.

You have to write this as a JS and then punch an embedded data via setEmbeddedData and then use that as your age factor.

You can also do the same in survey flow but will need to write a whole lot of logic. Hope this helps!