Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Fernando_Morata
New Member

Parameter to switch between source queries.

In my Dash Board I have two queries, one query that returns the code and the name of the project and the other is a proc. Is it possible to get the name of the selected project to pass as parameter in proc to query in sql database?

My idea would be as if it were a .net form with a combobox where after selecting the project, the system would show the data for the selected project.

The instruction of the second query looks like this:

exec [dbo]. [pr_PBIControlled] @ProjectName (The @ProjectName is the name of the project that I selected in the previous query).

 

Thank you for your help.

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

HI, @Fernando_Morata

You may try to use Parameters in Power BI Edit Queries.

This is the tutorial for you to refer to

reference:https://www.mssqltips.com/sqlservertip/4475/using-parameters-in-power-bi/

 

 

Best Regards,
Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

HI, @Fernando_Morata

You may try to use Parameters in Power BI Edit Queries.

This is the tutorial for you to refer to

reference:https://www.mssqltips.com/sqlservertip/4475/using-parameters-in-power-bi/

 

 

Best Regards,
Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.