Forum Discussion
TimHoare
2 years agoFrequent Visitor
Direct query limitations with the Snowflake connector
I have a report that connects to a Snowflake database via direct query, and a measure that calculates the median of a column. Because MEDIAN is a function that is supported in Snowflake, ideally the ...
jeffshieldsdev
2 years agoSolution Sage
Update the Snowflake query to use native SQL, something like:
let
Source = Value.NativeQuery(
Snowflake.Databases("server", "warehouse", [Role="role"]){[Name="database"]}[Data],
"
sql
",
null,
[EnableFolding=true]
)
in
Sourceand use MEDIAN() function that way.