Forum Discussion

Chelena's avatar
Chelena
Regular Visitor
8 years ago
Solved

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...
  • Anonymous's avatar
    Anonymous
    8 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