I have managed to set up the review system of 5 axis. I was able to configure Views to display the average of votes on a view page.

See screenshot:
NodeReviews

But now I'm faced with the new challenge: to display the average of overall votes (by summing up all 5 axis, then average.)

For example, given a voting scores like below:

First axis: Yönetim - 70%
Second axis: Senaryo - 85%
Third axis: Oyunculuk - 90%
Fourth axis: Görüntü - 60%
Fifth axis: Müzik - 60%

Therefore the average of the above = (70+85+90+60+60)/5 = 73%

what I need now is to add a column to the views page and display the average. What should I do to achieve that?

Could you please help me urgently?

thanks in advance.

CommentFileSizeAuthor
drupal-soru.jpg27.54 KBgokhanulus
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gokhanulus’s picture

Issue summary: View changes

editing

danielhonrade’s picture

You can do this using views, votingapi. Just create a view, field type, add relationship to votes, then the fields for voting should be visible, just add necessary fields.

All the results (scores) are in votingapi table, so by just accessing that you get all you need.

gokhanulus’s picture

Can you give examples?

gokhanulus’s picture

Issue summary: View changes

updated