Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
hi,
can i use stored procedure in DirectQuery mode? that gets pararmetets from my slicers, and show data according to?
thanks!
Solved! Go to Solution.
can i use stored procedure in DirectQuery mode? that gets pararmetets from my slicers, and show data according to?
Based on my test, so far it is not support to use stored procedure in DirectQuery mode. When trying to set up to use a stored procedure, usually an error occurs as below.
The error cause is because in DirectQuery, it actually sends a SQL as below to database, which has syntax error.
Regarding parameter and filter, in DirectQuery mode, the selecting action in a Slicer actually fetches data with the selections as filter in SQL end. You don't have to use a stored procedure to apply parameters to filter data.
Any one has the solution for the same?
We created stored procedures in Azure SQL Database and trying to use them power BI report with Direct Query mode. But getting the error like "Microsoft SQL: Incorrect syntax near the keyword 'EXEC'. Incorrect syntax near ')'.
Another question is how to set the connection string as global so that I can use the same connection string in every report?
Please help me with the solution
can i use stored procedure in DirectQuery mode? that gets pararmetets from my slicers, and show data according to?
Based on my test, so far it is not support to use stored procedure in DirectQuery mode. When trying to set up to use a stored procedure, usually an error occurs as below.
The error cause is because in DirectQuery, it actually sends a SQL as below to database, which has syntax error.
Regarding parameter and filter, in DirectQuery mode, the selecting action in a Slicer actually fetches data with the selections as filter in SQL end. You don't have to use a stored procedure to apply parameters to filter data.
User | Count |
---|---|
126 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
137 | |
116 | |
102 | |
71 | |
61 |