Working on historical Health App data (Weight -> BMI)


I’ve been measuring my weight for the last three years, with measurements every 3 or 4 days. Recently I purchased a scale that also calculates BMI automatically and realised I never recorded BMI in the past. Since this is a normal calculation I though I could create a Siri Shortcut to read historical data of the weight, take the date the measurement happened, then calculate the BMI and log it into the health app on the same date.

So far I have been unsuccessful as I am having trouble with the loops and recursion.

Anyone can provide help?

Here’s something to get you started:

You’ll need to do the BMI calculation yourself, but adding it back to to Health has already been done - with the date of the weight entry.

This was so simple! How could I have been getting it wrong? :man_facepalming:

Thanks @RosemaryOrchard

1 Like

It’s easy to overcomplicate things! Glad you got it working :slight_smile:

1 Like

Still a work in progress but this Shortcut includes the calculation of the BMI when you record your weight


Nice work! I added it to this list

I had this one just for the weight/BMI daily measurement but not for historical data.

Thanks everyone for the help.