I would like to show status icon as a picture in my list in column called "ICON" in SharePoint 365. I am using calculated column to show the icon, a picture which is stored in the Site Assets library in SharePoint.
I followed several guidance, I am able to display one icon for all rows if I use following formula:
="<DIV><img src='https://tenant.sharepoint.com/sites/pwa/Premier%20Oil%20-%20Vendor%20Neutral%20Service/SiteAssets/227-rect_red.png'
& IF([Overall Status]=(3) Red) '></DIV>"
But I cant work out how to display the right icon when selecting the Overall Status, which is either Green, Amber or Red, I am using following formula, but receiving errors.
="<DIV><img src='" & IF([Overall Status]=(3) Red, "https://tenant.sharepoint.com/sites/pwa/Premier%20Oil%20-%20Vendor%20Neutral%20Service/SiteAssets/227-rect_red.png",
IF([Overall Status]=(2) Amber,
"https://tenant.sharepoint.com/sites/pwa/Premier%20Oil%20-%20Vendor%20Neutral%20Service/SiteAssets/241-triang_yellow.png",
IF([Overall Status]=(1) Green,
"https://tenant.sharepoint.com/sites/pwa/Premier%20Oil%20-%20Vendor%20Neutral%20Service/SiteAssets/228-rect_green.png")))
& "'></DIV>"