Medium severityexecution
Power BI Refresh Error:
MetricFlowQueryError
What does this error mean?
MetricFlow failed to translate a semantic layer query into SQL because the requested metric, dimension, or time grain combination is invalid or not supported.
Common causes
- 1A BI tool requested a metric that does not exist or was renamed in the semantic model
- 2The requested dimension is not accessible from the metric's measure (not in the same semantic model or join path)
- 3An unsupported time grain was requested for the metric's primary time dimension
- 4A filter expression uses a dimension type or syntax that MetricFlow does not support
How to fix it
- 1Step 1: Run dbt sl list metrics to see all available metrics and dbt sl list dimensions --metrics metric_name to see valid dimensions.
- 2Step 2: Verify the requested dimension is accessible from the metric — check entity join paths in the semantic model.
- 3Step 3: Confirm the time grain is defined for the metric's primary time dimension.
- 4Step 4: Test the query locally: dbt sl query --metrics metric --group-by dimension.
- 5Step 5: Check dbt Cloud semantic layer logs for the exact query that failed and the MetricFlow error detail.