Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
3 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
11 | |
4 | |
3 | |
2 | |
2 |