I think you had asked the query in the relevant tip as well. I am responding here in detail
Insert Colorful Status RYG Images in the Reports - Page 2 - Google Cloud Community
The data in the app record in the backend sheet looks like
As you can see[Recent-Customer], [Prime_Customer], [Online_Purchases] are Y/N type columns.
So the template can look like below to convert the “Y” “N” or 'TRUE", “FALSE” values to “Yes”, “No”
Please note the [Prime_Customer_Status], [Recent_Customer_Status] and [Online_Purchases_Status] are three VCs that convert the status of Y/N columns [Prime_Customer], [Recent_Customer] and [Online_Purchases] into those status images as desired by you.
The result PDF will look like below
The expression for VC [Prime_Customer_Status] can be something like
CONCATENATE(“https://placehold.jp/”,SWITCH([Prime_Customer],“TRUE”,“228C22”,“FALSE”,“FFCC00”,“000000”),“/ffffff/150x150.png?text=”,IFS([Prime_Customer], “Yes”, NOT([Prime_Customer]),”No”))
You can similarly construct VCs and expressions for [Recent_Customer_Status] and [Online_Purchases_Status] columns.
Finally, please note as mentioned in the tip also, the images use an external service. So please evaluate the impacts at your end such as any security requirement or continuous availability of service etc.