0 votes
1 view
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.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...