Hello,
Thank you for your answers.
I took the weighted column approach and made 3 additional columns in my SharePoint list. The 1st column counts how many ""Yes" are present in the record. The 2nd column looks at the single line text fields and counts them if they are not blank. The 3rd Column SUMs the other 2 columns. I set the NumberOfTasks as a global variable of 81. On a Test Screen I am able to get the value of the "CompletedColumns" in number format by using ---> Value(GalleryRequests.Selected.CompletedColumns) in the current record the value is 79 this works on the test screen.
.
When I insert the HTML text box into my gallery and use the same code it gives me an error on the last line &
The full HTML text box formula is.
"<div style=""height:16px;position:relative;border-radius:10px;border:5px solid #111313;margin:25px 30px 10px 30px;overflow:visible;box-sizing:border-box;"">
<div style=""position:absolute;top:-5px;left:" & If(And(Value(GalleryRequests.Selected.CompletedColumns)>NumberOfTasks,NumberOfTasks > 0),100,Round(If(NumberOfTasks>0,Value(GalleryRequests.Selected.CompletedColumns) * 100.0 / NumberOfTasks,0),0)) & "%;"">
<div style=""position:relative;width:45px;height:21px;background-color:#292837;border-radius:3px;margin:-25px 0 0 -20px;text-align:center;color:white;font-size: 15px;padding-top: 0px;box-sizing: border-box;border-bottom:1px solid #292837;"">" & If(And(Value(GalleryRequests.Selected.CompletedColumns)>NumberOfTasks,NumberOfTasks > 0),100,Round(If(NumberOfTasks>0,Value(GalleryRequests.Selected.CompletedColumns) * 100.0 / NumberOfTasks,0),0)) & "%
<div style=""position:absolute;width:0;height:0;top:20px;left:3px;border-left:15px solid transparent;border-right:15.5px solid transparent;border-top:4px solid #292837;""></div></div>
</div>
<div style=""height:10px;position:absolute;border-radius:10px;background-color:#41e17f;top:-2px;left:-1px;width:" & If(NumberOfTasks>0,Value(GalleryRequests.Selected.CompletedColumns) * 100.0 / NumberOfTasks,0) & "%""></div></div>"
Any ideas why it works on a test screen but not in the gallery?