Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
MustangGB CreditAttribution: MustangGB commentedComment #3
renatogHi 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
Comment #4
renatog