Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in BI by (17.6k points)

I want to generate reports from my SQL Server tables.

I have some already made stored procedures that I would like to use to generate reports from.

I haven't found a way to do so.

Only by rewriting the queries.

Thanks :)

1 Answer

0 votes
by (47.2k points)

In order to execute stored procedure in Power BI:

  • Go to SQL Server “right-click” on stored procedure and select “Execute”. After execution of your cod, a new query window opens up which was responsible for execution. Copy that Query.

  • Go to Power BI Query Editor, Click on New Source and select SQL Server. After giving the server and database, click on "Advanced Options", paste the query in the "SQL Statement" . Navigate using full hierarchy  and click ok.

  • You will see data for the parameters you passed in Stored procedures only.

Remember that this works on "Import Query" option.

You can master these queries and become proficient in SQL queries by enrolling in an industry-recognized SQL certification.

How to use SQL Server stored procedures in Microsoft PowerBI?
Intellipaat-community
by
This is gold! thank you!!

Related questions

0 votes
3 answers
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...