Doesn't consider the value generated by views php field

Since the value generated by the views_php field is used by most other modules and works fine, I think we should also support views_php. There are cases where you need to manipulate the values fetched by views. views_php does a good job. Using it in conjunction with Views calc would be of immense help.


quickly’s picture

I agree... it would be great if views calc could handle views_php fields...

Anonymous’s picture

Any news ?

dready2011’s picture

Any plans on this? Would be VERY helpful..

johnnydarkko’s picture


johnnydarkko’s picture

Just for reference -- related ticket in the views_php issue queue:
#1558308: Views_PHP fields and filters not reflected in Views Calc totals

trudog’s picture

you can cheat the error generated by php value by adding another field, rewriting the output with the one of the php value field, then calculate whatever outcome for the new field. you will get rid of the error, but, at least for me, the sum is wrong.

did anyone tried this successfully?

zeezhao’s picture

Issue summary: View changes

Please has anyone got any ideas on the best way to fix this? Thanks

Fyi - this can also help:

aytee’s picture

This is an old issue, but if you have are using Views PHP to generate values and are trying to do calculations, use Views Aggregator as @zeezhao suggested. I struggled with Views Calc for awhile before heading to Views Aggregator and solving the issue pretty quickly. Views Aggregator also has an API so you can make your own calculation functions relatively easily.