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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
PrakashM
Frequent Visitor

Get the values from Card and pass it to SP

Hi All,

 

I want to get the value from the card visualization and pass it to Sql Stored procedure as a parameter. Whenever i am applying any filters in slicer then the card value will change . Based on the card value it will pass it as input for stored procedure.

 

Please advise on the same to achieve this.

 

Thanks!

1 REPLY 1
Eric_Zhang
Microsoft Employee
Microsoft Employee


@PrakashM wrote:

Hi All,

 

I want to get the value from the card visualization and pass it to Sql Stored procedure as a parameter. Whenever i am applying any filters in slicer then the card value will change . Based on the card value it will pass it as input for stored procedure.

 

Please advise on the same to achieve this.

 

Thanks!


 

  1. You can get the value of the card by using the same measure in the same context.
  2. A stored procedure can be used in Import Mode, while in DirectQuery mode it is not supported, you would encounter some syntax error.
  3. AFAIK, there's no way to pass a value in visuals to the Power Query where Power BI accesses SQL Server.

Can you be more specific on your scenario so that we can think of any other workaround.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors