Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
In Ssrs, we can call a stored procedure with dynamic parameters,
EXEC usp_Client_Day @Start, @End, @MainCLient, @Client, 'CS,COS','NPG'
Quetion? How do you call a stored procedure with dynamic parameters in powerbi sql statement similar to the above code?
Solved! Go to Solution.
Thanks. I guess by default i should just create the data range parameter within sql statement and create the other parameters in powerbi visual.
Hello @akosiRandy ,
Power bi doesn't support stored procedures, you must create it as a view and then connect to it through Power BI.
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Follow me on Linkedin
Vote For my Idea 💡
Proud to be a Super User! | |
Thanks. I guess by default i should just create the data range parameter within sql statement and create the other parameters in powerbi visual.
= Value.NativeQuery( Sql.Database("SqlSvr", "db"), "EXEC usp_Client_Day", {@Start, @End, @MainCLient, @Client, "'CS,COS'","'NPG'"} )
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Thanks. Do you enter that code in SQL Statement dialog?
Hey @akosiRandy
Take a look into this link: Power BI. Execute SQL Server stored procedure with a user parameter - Stack Overflow
Regards,
Marcel
Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI
User | Count |
---|---|
70 | |
70 | |
34 | |
23 | |
22 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |