Forum Discussion

sqldev2017's avatar
sqldev2017
Microsoft Employee
9 years ago

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

    • sqldev2017's avatar
      sqldev2017
      Microsoft 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 ?

      • vanessafvg's avatar
        vanessafvg
        Community 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?