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
Pbi_Enthu
Regular Visitor

parameterize web API link while refreshing dataset

 

Hi,

 

     I am working on embedding a PBI report in to a .Net Web application.

 

We have users logging in to the website through different regions in to the website, and the web API link is generated based on the user REGION that he/she belongs to.

 

Eg: http://dummy.corp.TT.com/WebApi/api/subjectarea/Getsubjectarea/REGION1

 

I am looking for a option where i can parameterize the REGION in the web API link to pass in to PBI, where i can only show data in the PBI report for the REGION the user belongs to.

 

Is there a option where i can pass/change the wep api link dynamically in to gateway for datarefresh so that we can provide that particular REGION's data to the customer.

http://dummy.corp.TT.com/WebApi/api/subjectarea/Getsubjectarea/#REGION#   

 

Note : Data is in JSON format

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

HI @Pbi_Enthu,

 

>>Is there a option where i can pass/change the wep api link dynamically in to gateway for datarefresh so that we can provide that particular REGION's data to the customer.

Current power bi not support dynamic push parameters to gateway.

 

For your scenario, I'd recommend you to setting RLS with mapping username and regain data to achieve dynamic filter effect.

RLS with UserName()

 

Logic: add region information to user table, use region link other tables, then use username to apply filter effect on user table.(apply cross filter effect to other tables)

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Pbi_Enthu,

 

>>Is there a option where i can pass/change the wep api link dynamically in to gateway for datarefresh so that we can provide that particular REGION's data to the customer.

Current power bi not support dynamic push parameters to gateway.

 

For your scenario, I'd recommend you to setting RLS with mapping username and regain data to achieve dynamic filter effect.

RLS with UserName()

 

Logic: add region information to user table, use region link other tables, then use username to apply filter effect on user table.(apply cross filter effect to other tables)

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi


Power BI embedded just released Query Parameters for Power BI Embedded

https://azure.microsoft.com/en-gb/updates/power-bi-embedded-query-parameters-api/

 

Can you advise if there is any sample to this? I am also trying to achieve a simular effect

 

Thanks

Alexander

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors