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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Singh_10
Helper I
Helper I

Pass List of Parameter or when user select from Power BI ID passed into the API to get the Details

Hi,

 

I want to pass the parameter into the API URL in Power bi to fetch the details of USage report

 

= OData.Feed("https://reports.office.com/pbi/v1.0/" & TenantID,null,[ODataVersion=4])

 

TenantID would be the list of parameter or when user select the tenent ID to get the details

5 REPLIES 5
Anonymous
Not applicable

Hi @Singh_10 

1.As @lbendlinmentioned, the OData not supports direct query mode,  so if you want to implement it , you consider to create a paramater, then input related information to filter tenant ID. e.g you use the  username to filter the id, you can create a paramater called username, set it type to text.

vxinruzhumsft_0-1711950043281.png

 

The  in the tenantid table, filter the table with the paramater.

vxinruzhumsft_2-1711950209797.png

 

Then change the code of the url to the following.

 

 

 

= OData.Feed("https://reports.office.com/pbi/v1.0/" & TenaneID[TenantID]{0},null,[ODataVersion=4])

 

 

 

You can edit the paramater in Data Settings Power BI Service  or in Power query editor.

2.You can consider to put the data to SQL Server and use direct query mode to connect it so that you can use dynamic paramaters.

 

Best Regards!

Yolo Zhu

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

Hi @Anonymous  thank you for the response i will implement this and update this post 

lbendlin
Super User
Super User

Are you expecting this to be refreshable on the service?

yes , refreshable when user select from the filter

Well, that's a separate issue, and one you cannot solve with the standard ODATA connector, as it doesn't even support Direct Query.

 

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.