Forum Discussion
Anonymous
1 year agoNot applicable
Slicer-Bound Parameter DirectQuery
Hi all, I'm trying to use a DirectQuery in Power BI (Desktop, latest version) to filter a SQL Server 2019 table based on a parameter value selected via slicer. Scenario: I am using a SQL Serv...
- 1 year ago
let
source = Sql.Database("foo.bar.com", "wh",[Query="SELECT * FROM [tfm].[so.input.budget/forecast] WHERE pk = " & Text.From(#"snapshot_pk")])
in
source
lbendlin
Super User
1 year agoTry a less fancy SQL. Anything that goes beyond a simple SELECT statement is prone to give issues. There is no need to use DECLARE, really. Put the query directly into the Source step.