Error: Column < name > must appear in the GROUP BY clause or be used in an aggregate function
Stay organized with collections
Save and categorize content based on your preferences.
This page can help you troubleshoot the column name must appear in the GROUP BY clause or be used in an aggregate function error in Looker.
This error commonly occurs when a dimension is used in a measure that does not have an aggregate type. Our measure type documentation contains a list of measure types and whether each is an aggregate type.
For example, a type: number measure is not an aggregate measure, so this LookML would produce an error:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-11 UTC."],[],[]]