Good work.
I’m not sure your full requirements, but perhaps you can simplify it even further. Are you needing the shortened bitly link for something else? If not, the qr api certainly does need it, it can generate a qr code from the full length url. You also don’t need the intermediate qr-url column, you can just concatenate it directly in the qr-image column. You definitely don’t need any of the [_THISROW].'s that you used, and oftentimes using them when it’s not necessary can cause weird issues, so you shouldn’t do it. You also probably don’t need that encodeurl().