function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SamCousinsSamCousins 

How do I filter <apex:reportChart> by boolean logic?

You know the way when creating reports, after adding filters, you can add logic to the filters such as OR, AND etc..

How do I change this logic within Visualforce inside the <apex:reportChart> element? I can define filters, but there's no property to define filter logic. At the moment every time I add a filter it's an 'AND', when really I want an 'OR' for my filters. Can anybody help, thanks!
Best Answer chosen by SamCousins
Andy BoettcherAndy Boettcher
You could do that magic in the source report itself and then expose it via an analytics:reportChart component?

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_analytics_reportChart.htm