Forum Discussion
PQ application parameter screening does not take effect
- Anonymous4 years ago
hi,v-yingjl :
thank you for your reply.
I retried it again just now.
I find that it doesn't seem to have anything to do with this(SQL statement with join).
M query with parameter screening is ok.
Loaded for some time after applying parameter filtering. I think of this load time as full load. It is my mistake. sorry.
so, there is no problem with M query with parameter screening and sql statement with join. It , that is sql with join, just takes a little longer time to load than with no join sql.
thanks a lot
hi,watkinnc:
thank you for your reply.
My M query just like this:
let
Source =
Sql.Database("XXX.azuresynapse.XXX", "XXX",
[Query=
"select a*,b.name FROM A left join B on A.id= B.id",
HierarchicalNavigation=true])
Selectrows = Table.SelectRows(Source, each [dt] >= startdate and [dt] <= enddate)
in
Selectrows
startdate and enddate are parameters.
This filter does not work. The pbid will load all data, rather than load data between startdate and enddate. very strange.
b.name will as primary key to connect other table in tabular model. the view I have no access to alter in sqldatabase. so this sql statement is needed.
IF M query like this , it will work.
let
Source = Sql.Database("XXX.azuresynapse.XXX", "XXX"),
ANYTABLE = Source{[Schema="XXX",Item="A"]}[Data],
Selectrows = Table.SelectRows(ANYTABLE, each [dt] >= startdate and [dt] <= enddate)
in
Selectrows