Forum Discussion
Passing Timeline Slicer values to SQL Query as parameters
So basically , this is what it is -
I have a data source which has a "SQL Query"..... (I have written a SQL Query, but obviously on saving it converts to Power Query)
I want to be able to pass the Start and End Dates from the "Timeline Slicer" as parameters to this "SQL Query"......
It is the same as what is being asked here -
happy to be wrong but dont think that is possible in imported mode, in direct query that would happen automatically i would think as its only looking at live data.
maybe this post can offer more info or a work around
https://community.powerbi.com/t5/Desktop/How-do-I-pass-parameters-to-my-SQL-statement/m-p/119671
- sqldev20179 years agoMicrosoft Employee
I used this same solution , by creating a report level parameter - it does work fine.
I wanted to see if I can do the same using Timeline Slicer.
- vanessafvg9 years agoCommunity Champion
dont think so, not in imported mode.
- v-ljerr-msft9 years agoMicrosoft Employee
Hi sqldev2017,
I used this same solution , by creating a report level parameter - it does work fine.
I wanted to see if I can do the same using Timeline Slicer.
As far as I know, it is not possible to use a Timeline Slicer in this scenario currently. :smileyhappy:
Regards