Marks adding for students

Dear Team,

Please help me with the task.
Find the attached document. I need the output as mentioned in expected output sheet
Team Training - Assignment 2.xlsx (11.3 KB)

Hi @ramshiva_reddy

Read the input sheet & add 3 columns to the data table using the activity ‘Add Data Column’. hen, please use the following query in the ‘Invoke Code’ activity:

yourDt.AsEnumerable.ToList.ForEach(Sub(row)

row("Total Marks") = (Cint(row("Subject1 ")) + Cint(row("Subject1 ")) + Cint(row("Subject1 "))).ToString

row("Percentage") = (Cint("Total Marks") * 100)/300

row("Status") = (If(Cint(row("Percentage")).ToString))>=70,"Pass","Fail")

End Sub)

Hope this helps,
Best Regards.

@ramshiva_reddy ,
Check this workflow

MarksAdd.zip (2.3 KB)

Output :
image

Regards,

Thank you for your immediate response.
But I’m getting an error at the assign activity for Total marks

@ramshiva_reddy ,
Please Provide correct column Names Sometimes if there is any spaces in the column Names it will throw errors like this.

Regards,

Thank you bro… Now the error has been sorted and looks good
Got it.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.