Forum Discussion
Passing Timeline Slicer values to SQL Query as parameters
Hi,
I have created a timeline slicer , with date values coming from a SQL Query.
Now Depending on the Start and End Date/Times selected on the Timeline slicer , I want to dynamically pass these date values to another query, from which data in a table is generated in the report.
Please help.
8 Replies
- vanessafvgCommunity Champion
are you working in imported mode or direct query?
- sqldev2017Microsoft Employee
My data connectivity mode is "Import"....
I know how to modify the "Power Query M" , to pass a parameter....
But how do i pass the Start and end Dates in the Timeline Slicer to the Query ?
- vanessafvgCommunity Champion
so you want to
power bi timeline slicer parameter ---> pass to power query ---> pass to sql data source correct?
if that is true, i am not sure how that would work as the refresh of an imported model happens before you adjust your slicer or am i misunderstanding your requirement?