Forum Discussion
duggy
6 years agoAdvocate II
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...
Anonymous
6 years agoNot applicable
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