Forum Post: RE: How would I create a guage based on Conditions

Status
Not open for further replies.
R

Ricardo Rafols

Guest
Hi mysteryminds, The correct syntax for getCount is rbv_api.getCount(viewId, filterName, filterValue) try to use something like this: return Number(rbv_api.getCount('your viewer id', 'location', 'A')) + Number(rbv_api.getCount('your viewer id', 'location', 'B')) + Number(rbv_api.getCount('your viewer id', 'location', 'X')) + Number(rbv_api.getCount('your viewer id', 'location', 'Y')) + Number(rbv_api.getCount('your viewer id', 'location', 'Z')); Or you can use rbv_api.selectQuery("SELECT count(*) FROM your table WHERE location IN ('A','B','C','X','Y','Z')", 1)

Continue reading...
 
Status
Not open for further replies.
Top