Forum Discussion
Anonymous
6 years agoNot applicable
How to Create Date Parameters in Direct query
Hi Team, I'm want to restrict the data to the users. So, i have created a Date parameter wherein user have to select Start date and End Date in Power bi service. I have created below M Langa...
Jayendran
6 years agoSolution Sage
Hi Anonymous ,
Basically it should work. Do you have tried this with the latest PBI Desktop ?
Here is the real working sample video : https://channel9.msdn.com/Blogs/MVP-Azure/Pass-parameter-to-SQL-Queries-statement-using-Power-BI
FarmerKenny
3 years agoHelper II
I passed the exact syntax to my SQL query for the data parameter, '"StartTime"' and I received a token Comma syntax error in the Advanced Editor. Both the Parameters are Date data types. Any ideas?