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
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 8 | |
| 7 | |
| 7 |