###Insights Question Template
I’m trying to get a adjusted error rate across apps and time. I was planning to use FILTER to achieve this but I just get an error:
Something went wrong while executing your query.
Query:
SELECT
FILTER(count(errorMessage)/count(*) * 1000, WHERE appName = 'App1'),
FILTER(count(errorMessage)/count(*) * 1000, WHERE appName = 'App2'),
FILTER(count(errorMessage)/count(*) * 1000, WHERE appName = 'App3')
FROM Transaction
FACET DATEOF(timestamp) SINCE 7 days AGO
If I remove the rate calculation, the query executes:
SELECT
FILTER(count(errorMessage), WHERE appName = 'App1'),
FILTER(count(errorMessage), WHERE appName = 'App2'),
FILTER(count(errorMessage), WHERE appName = 'App3')
FROM Transaction
FACET DATEOF(timestamp) SINCE 7 days AGO
But this doesn’t give the result I need.
Ideas?