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:
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.
Comment | File | Size | Author |
---|
Comments
Comment #0.0
gokhanulus CreditAttribution: gokhanulus commentedediting
Comment #1
danielhonrade CreditAttribution: danielhonrade commentedYou 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.
Comment #2
gokhanulus CreditAttribution: gokhanulus commentedCan you give examples?
Comment #2.0
gokhanulus CreditAttribution: gokhanulus commentedupdated