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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
anshikak1
New Member

How to Enable Dynamic Ticker Filtering for API Data in Power BI?

Hi Power BI Community,

 

I'm working on a Power BI report that fetches data from several APIs provided by Financial Modeling Prep (e.g., Daily Stock Prices, Price Targets, Upgrades & Downgrades). I want to provide end-users the ability to filter the data by ticker symbols dynamically, but I'm encountering some challenges.

 

Here's what I have done so far:

1. API Data Import: Successfully imported data from the APIs in Import Mode using Power BI Desktop.
2. Parameter Creation: Created a parameter named SelectedTicker in Power Query Editor.
3. Data Fetching: Modified the API M queries to use this parameter to fetch data for the selected ticker.
4. Slicer Setup: Added a slicer to the report using a table of ticker symbols.

 

Issues:
1. Dynamic Updates: The SelectedTicker parameter in Power Query does not update dynamically based on the slicer selection made by the user.
2. Parameter Binding: Struggling with how to bind the slicer selection to the parameter so that the API calls can reflect the user-selected ticker.

 

My Question:
1. How can I dynamically update the API calls in Power BI based on the ticker symbol selected by the user in a slicer?
2. Is there a way to make the parameter update dynamically based on slicer selection?
3. What are the best practices for setting up such dynamic filtering for API data in Power BI?

 

Example:
For instance, if a user selects "AAPL" from the slicer, the report should fetch and display the latest data for AAPL from the API.

Any insights, examples, or step-by-step guidance on how to achieve this would be greatly appreciated!
Thanks in advance!

 

 

 

M Query to fetch data from API.pngData.png

 

1 REPLY 1
Anonymous
Not applicable

Hi @anshikak1 ,

 

Using Dynamic M Query Parameters it is possible to pass values from the slicer to M parameters. However, according to the documentation, these tables must be DirectQuery tables.

vcgaomsft_0-1721006466397.png

Dynamic M query parameters in Power BI Desktop - Prerequisites

 

From the description, it appears that these tables use Import mode, so dynamic M query parameters cannot be used. Please consider submitting this idea here to help PowerBI do better.

Welcome to Microsoft Fabric Ideas

 

Some related discussions:

can-i-build-a-power-bi-directquery-dataset-on-top-of-a-rest-api

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.