Hi there! Thank you for answering. Would be so amazing if you could help point me to the right direction. What I’m trying to is to do is take a child’s weight and their age and compute the percentile of children growth they lie in.
Say a child is 2 month old and weighs 4 kilograms, then I would want to be able to output 3rd percentile according to the pink chart attached above. The data ranges from 1-60 months of age and each month has 11 percentile categroies.
This is a snippet of how the expression is structured. This is all contained in an IFS statement and repeats 60 times for each month (while swapping out the weight categorization for each month):
[Patient Linked].[Months Old] =0,
IFS (
[Weight kg] <=2.5,
“0th-3st percentile”,
[Weight kg] <=2.6,
“3rd-5th percentile”,
[Weight kg] <=2.9,
“5th-15th percentile”,
[Weight kg] <=3,
“15th-25th percentile”,
[Weight kg] <=3.3,
“25th-50th percentile”,
[Weight kg] <=3.7,
“50th-75th percentile”,
[Weight kg] <=3.9,
“75th-85th percentile”,
[Weight kg] <=4.2,
“85th-95th percentile”,
[Weight kg] <=4.3,
“95th-97th percentile”,
[Weight kg] <=4.6,
“97th-99th percentile”,
[Weight kg] <=4.6,
“+99th percentile”
),
[Patient Linked].[Months Old] =1,
IFS (
[Weight kg] <=3.4,
“0th-3st percentile”,
[Weight kg] <=3.6,
“3rd-5th percentile”,
[Weight kg] <=3.9,
“5th-15th percentile”,
[Weight kg] <=4.1,
“15th-25th percentile”,
[Weight kg] <=4.5,
“25th-50th percentile”,
[Weight kg] <=4.9,
“50th-75th percentile”,
[Weight kg] <=5.1,
“75th-85th percentile”,
[Weight kg] <=5.5,
“85th-95th percentile”,
[Weight kg] <=5.7,
“95th-97th percentile”,
[Weight kg] <=6,
“97th-99th percentile”,
[Weight kg] <=6,
“+99th percentile”
),
[Patient Linked].[Months Old] =2,
IFS (
[Weight kg] <=4.4,
“0th-3st percentile”,
[Weight kg] <=4.5,
“3rd-5th percentile”,
[Weight kg] <=4.9,
“5th-15th percentile”,
[Weight kg] <=5.1,
“15th-25th percentile”,
[Weight kg] <=5.6,
“25th-50th percentile”,
[Weight kg] <=6,
“50th-75th percentile”,
[Weight kg] <=6.3,
“75th-85th percentile”,
[Weight kg] <=6.8,
“85th-95th percentile”,
[Weight kg] <=7,
“95th-97th percentile”,
[Weight kg] <=7.4,
“97th-99th percentile”,
[Weight kg] <=7.4,
“+99th percentile”
)