Forum Discussion
Chelena
8 years agoRegular Visitor
Birthday in human readable language
Good day I'm a nurse working with with paediatric data. I want the column to display age "2y; 1m; 4d" from age in days. My excel recipe for this is as follows, it works fine: =INT([@Age]/365.24...
- Anonymous8 years ago
Chelena,
Directly create a calculated column using DAX below.col = INT([Age]/365.2425)&"y; " & INT(([Age]-INT([Age]/365.2425)*365.2425)/30.44)&"m; " &INT([Age]-INT([Age]/365.2425)*365.2425-INT(([Age]-INT([Age]/365.2425)*365.2425)/30.44)*30.44)&"d"
Regards,
Lydia
rajulshah
8 years agoResident Rockstar
Hello Chelena,
From the description, I think you want to display age in days.
For that, you just have to add custom column in the table in 'Edit Queries' window.
Select the Dates column and click on 'Add Column' tab and click on 'Column from Examples', and under that option select 'From Selection'.
You will get list of values you want to calculate. You can select age and will have age in days.
Let me know if I missed something or need any further help.
Regards.