Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I am trying to parameterize my Azure Databricks connection to create a deployment pipeline. I managed to set parameters for ServerName, HTTP path, and Catalog, but what about a native SELECT query like this:
= Value.NativeQuery(Databricks.Catalogs(ServerNameParameter, HTTPparameter, [Catalog=CatalogParameter, Database=null, EnableAutomaticProxyDiscovery=null]){[Name=CatalogParameter,Kind="Database"]}[Data], "SELECT accountName, mainAccount, entity, entityId, Status, channel, COUNT(messageId) AS totalMessagesCount ,errorGroup#(lf),yyyy,mm,dd#(lf), countryName, countryPrefix#(lf), networkName, originalMCC, originalMNC, originalMCCMNC#(lf)FROM gds_dev.gds_slv_infobip.operation_messages#(lf)#(lf)GROUP BY accountName, mainAccount, entity, entityId, Status, channel, errorGroup, yyyy, mm, dd, countryName, countryPrefix, networkName, originalMCC, originalMNC, originalMCCMNC", null, [EnableFolding=true])
Thank you!
Solved! Go to Solution.
= let
DatabaseName = DatabaseNameParameter,
SQLQuery = "SELECT accountName, mainAccount, entity, entityId, Status, channel,
COUNT(messageId) AS totalMessagesCount, errorGroup, yyyy, mm, dd,
countryName, countryPrefix, networkName, originalMCC, originalMNC, originalMCCMNC
FROM " & DatabaseName & ".gds_slv_infobip.operation_messages
GROUP BY accountName, mainAccount, entity, entityId, Status, channel, errorGroup,
yyyy, mm, dd, countryName, countryPrefix, networkName, originalMCC,
originalMNC, originalMCCMNC",
Data = Value.NativeQuery(
Databricks.Catalogs(ServerNameParameter, HTTPparameter,
[Catalog=CatalogParameter, Database=null, EnableAutomaticProxyDiscovery=null]
){[Name=CatalogParameter,Kind="Database"]}[Data],
SQLQuery,
null,
[EnableFolding=true]
)
in
Data
= let
DatabaseName = DatabaseNameParameter,
SQLQuery = "SELECT accountName, mainAccount, entity, entityId, Status, channel,
COUNT(messageId) AS totalMessagesCount, errorGroup, yyyy, mm, dd,
countryName, countryPrefix, networkName, originalMCC, originalMNC, originalMCCMNC
FROM " & DatabaseName & ".gds_slv_infobip.operation_messages
GROUP BY accountName, mainAccount, entity, entityId, Status, channel, errorGroup,
yyyy, mm, dd, countryName, countryPrefix, networkName, originalMCC,
originalMNC, originalMCCMNC",
Data = Value.NativeQuery(
Databricks.Catalogs(ServerNameParameter, HTTPparameter,
[Catalog=CatalogParameter, Database=null, EnableAutomaticProxyDiscovery=null]
){[Name=CatalogParameter,Kind="Database"]}[Data],
SQLQuery,
null,
[EnableFolding=true]
)
in
Data
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 10 | |
| 7 | |
| 6 |