
Announcements
Hello! I'm trying to add an Age column to my Customers table. I have each customer's date of birth in a column DOB as a date.
My primary goal is to have age display accurately as a year, and as a whole number, but so far I have not been able to do both at once.
The Age column is a calculated text column with the following formula:
DiffInMonths(velrada_dob, Now()) / 12
It returns the correct year, but has a decimal, which I do not want.
The Age in Years column is a calculated decimal column, with 0 decimal places and with the following formula:
DiffInMonths(velrada_dob, Now()) / 12
It returns the rounded year, which is not the correct age as per the date of birth 50% of the time. It is the year closest to the date of birth. Sometimes it's correct (line 3), and sometimes it's wrong (line 1). Same thing happens with the same formula on a whole number column.
The Age in Years 2 column is a formula column (decimal automatically) with the following formula:
Hello, @Anonymous, you will have to use the Dataverse Formula Columns to use the Round function with is not available in the calculated column: the feature is in Preview, so you can use by using this url in your environment link:
make.preview.powerapps.com
| If my reply helped you, please give a 👍 , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more. I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends. Visit my Blog: www.powerplatformplace.com
|