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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Singh_10
Frequent Visitor

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
v-xinruzhu-msft
Community Support
Community Support

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 @v-xinruzhu-msft  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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.