=QUERY('trcklv лиды'!A1:G;"
SELECT
C, D, E,
SUM(IF(F = 'lead', 1, 0)),
SUM(IF(F = 'sale', 1, 0)),
SUM(IF(F = 'trash', 1, 0)),
SUM(G)
GROUP BY C, D, E
")
Не удалось интерпретировать query string. Подробности: Параметр 2 в функции QUERY:PARSE_ERROR: Encountered "(" at line 4, column 23. Was expecting: ")" ...