Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
adrianPadurariu
Resolver I
Resolver I

Parameterizing Azure Databricks when using SELECT query

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:

adrianPadurariu_0-1742307818725.png

= 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!

 

1 ACCEPTED SOLUTION
adrianPadurariu
Resolver I
Resolver I

= 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

View solution in original post

1 REPLY 1
adrianPadurariu
Resolver I
Resolver I

= 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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors