Hi everyone,
My data source is a sql server and I think I need a dynamic query parameter so the user can use a slicer in order to filter the fact table by a date before performing the power query transformations.
Do dynamic query parameters work only on tables in direct query mode ?
I’m getting an error message:
“ LE DB or ODBC error: [Expression.Error] We cannot convert the value #datetime(2023, 2, 28, 0, 0, 0) to type Date”
And also this error message as soon as I bind the date field to the parameter:
Hi @Melissa , thanks so much for your response. I got the Parameter to update the DirectQuery table based on a slicer selection on the report.
Here is how it looks in the query:
However, every time I change the date I receive this popup message asking to approve the new query:
Hi @Melissa , thanks for showing that settings option. One last question regarding this-- is it possible to do this on an import table? Or does it have to be a Direct Query table?
Dynamic M query parameters give model authors more control over the filter selections to incorporate into DirectQuery source queries. So yes, DirectQuery.