cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Passing parameters from (.Net C#) embedded to Power BI

Hi,

 

I have my powerbi embedded into my website (.Net ASP C#) where I pass the username parameter for the user who is logged in. This filters through Roles the data that the user is allowed to see. Works great. The question though is can I pass other parameters to Power BI in the same fashion?

 

For example I want to pass a date parameter to the date table so as the user travels from page to page (website pages) and there are other embedded Power BI pages in these pages, they dont have to reset the date range. I want to pass the start and end dates accordingly so they see the same set of data.

 

Is this in any way possible through Roles or any other fashion?

 

Much appreciated.

1 REPLY 1
Highlighted
Helper III
Helper III

Re: Passing parameters from (.Net C#) embedded to Power BI

I'm not sure if this is possible using just C# but you could probably get it working using the Javascript configuration. 

Either doing it all on the client side, pass the date in a cookie or something, or try and pass the date to back-end and then return it back to client with the embed configuration and filter client side. 

https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-Configuration-Details#options

https://github.com/Microsoft/PowerBI-JavaScript/wiki/Filters

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors