Hi, I’m Alejandro :)
I'm working on automating report creation via the Ruby SDK.
To be able to create reports, I was following these instructions: https://sdk.gooddata.com/gooddata-ruby-doc/docs/working_with_reports
But this way of creating reports :
project.compute_report(left: project.metrics.first, filters: [[label, :not, 'San Francisco', 'Prague']])
only allows me to create filters as IN or NOT IN, per what I can see in the method itself.
In my case I want to create a report with 2 filters with the expressions:
Year is this year (so this would be Attribute = Value)
<attribute > where Contact is Valid is equal to 1. (so this would be attribute where metric is equal to 1)
How can I accomplish this? I can't seem to find examples or good enough information related to this or how to do it.
I'll appreciate any help,
Thanks
Alejandro
Best answer by alejandro.rivera
View original