Forum Discussion
dawcza3
9 years agoFrequent Visitor
Calculate Age with Direct Query Support
I'm trying to calculate Age from DateOfBirth. Actually I'm do this with transformation date to age and round down. It's works ok, but it not avalaible to use data in direct query mode. So, is ther...
- 9 years ago
thanks for replay but actually I do this in simple way :
Age = ROUNDDOWN(((1,0*(TODAY()-Partner[DateOfBirth]))/365);0)
dawcza3
9 years agoFrequent Visitor
thanks for replay but actually I do this in simple way :
Age = ROUNDDOWN(((1,0*(TODAY()-Partner[DateOfBirth]))/365);0)
- v-ljerr-msft9 years agoMicrosoft Employee
Hi dawcza3,
Nice solution!
Could you accept your reply as solution to help others who may have similar issue easily find the answer and close this thread?:smileyhappy:
Regards
- Brian8209 years agoNew Member
Noob question, my apologies. I have a very similar need and don't understand where I would define "Age" so that it can be included in the visualization. Is this a new column, or a measure?
Secondly, could it be applied to a summarized result. Using this example, to find the age of the youngest person in a family?