Showing results for 
Search instead for 
Did you mean: 
New Member

can we call stored procedure from power bi service or from user end.

Hi ,


I have a sp with  4 parameters and I am connecting the sp with direct query mode and getting error like )syntax is missing.but when i connect the same sp with import option it works fine.

the requirement is that user can access his data by calling out the parameters from frontend and when he login with his credentials he should automatically get the data by calling out the procedure at backend through pbi report link.


did anyone faced such schenario? Please provide me a solution.



Community Support
Community Support

HI @Priyankadubey,

Unfortunately, current power bi not able to use the stored procedure on datasource with directquery mode.
Please change to 'import' mode or 'make a copy' with a raw query table with 'import' mode to execute the stored procedure.

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Super User III
Super User III

There is no solution at the moment. Use RLS with DirectQuery to emulate the sp functionality.

Helpful resources



We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!


The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors