Forum Discussion

mr_wizard's avatar
mr_wizard
Icon for Resolver I rankResolver I
2 years ago

how to pass parameter to database

I have a situation where a table or a query result set needs to be generated at user-interaction time in a "normal" Power BI dataset (created in Power BI Desktop).  For example, a user enters a value in some visual in a Power BI report, and that value executes a stored procedure, which returns a result set to some other visual in the report.  In a paginated report (Power BI Report Builder), this would be fairly simply -- create a parameterized stored procedure that returns a result set and call that stored procedure in the report.  However, I don't have Power BI Report Builder (paginated reports) available to me in my environment.  And, I can't find a way to achieve this in Power BI Desktop, even in DirectQuery mode.  To be sure, I can't "pre-calculate" a table in the database that contains all possible rows and have the user simply drive the filtering via a slicer, as the pre-calculated table will be gigantic.  So, is this possible to do in Power BI Desktop?

3 Replies