Hello everybody,

I have a views table of employees shift in my website.
In this table, I have a Hours field which has number of hours each employee worked inside.
Now I am trying to add a percentage field.

In this field I want to have (number of hours / Total of hours * 100),
Number of hours in from the Hours Field, but I don't know how to get the total of that field and have it here!

Would anyone help me?
I don't have much time.

Thanks.

Comments

MustangGB’s picture

Priority: Major » Normal
renatog’s picture

Hi Maryam, how are you?

Well, you can try to use Computed Field and/or Views PHP for it.

You can do it using PHP.

I hope to help.

Best

renatog’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.