Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
I am new to Power Query and I am trying to load some data using an ODC query.
I am getting the following errors with the below query:
Expression.Error: The name 'GetList' wasn't recognized. Make sure it's spelled correctly.
I have defined 'BP_Selected_ACT' as a named range in my workbook and named range should result in matches.
Please can you let me know what you think the issue is?
let
Source = Odbc.Query("dsn=BusinessModel","
SELECT
DT1.ORGANISATION_SHORT_NAME,
DT1.ACT_MODEL,
DT1.ACT_METRIC_ID,
DT2.ACT_METRIC,
DT1.FISCAL_YEAR
FROM
BusinessModel.MV_ACT_CATEGORISED_METRICS DT1
JOIN
BusinessModel.DIM_ACT_METRICS_ENTITY DT2
ON
DT1.ACT_METRIC_ID = DT2.ACT_METRIC_ID
WHERE
DT1.ORGANISATION_SHORT_NAME
IN
('" & Text.Combine(GetList("BP_Selected_ACT"), "','") & "' )
"),
#"Filtered Rows" = Table.SelectRows(Source, each true)
in
#"Filtered Rows"
Solved! Go to Solution.
Even though it's a named range, you still have to pull it in using Excel.CurrentWorkbook as a query source, and then select the named range. And you can refer to it by its query name
--Nate
Even though it's a named range, you still have to pull it in using Excel.CurrentWorkbook as a query source, and then select the named range. And you can refer to it by its query name
--Nate
Thanks - it was because i had not defined the GetList function properly
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |