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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
buchta
Frequent Visitor

Embed a Power BI report in Power Apps with dynamic filters

Hi guys

 

I would like to adjust this solution to my case
https://microsoft-bitools.blogspot.com/2020/03/embed-power-bi-tile-in-power-apps-with.html

I have PBI tile embedded in Power apps. This tile is actually direct link to the PBI report so the URL filtering condition is met. 
I would like to leverage the User().Email and create dynamic URL filter. 

 

I have Dim_Empl table that has IdentityEmail column that holds emails that are matching the User().Email but don't know how achieve something like 
"https://app.powerbi.com/embed?dashboardId=11111111-aaaa-1234-aaaa-111111111111&tileId=11111111-aaaa-...&filter=DIM_Empl/IdentityEmail eq 'User().Email '

..so PBI will pick up the USER email that is loged into the app and pass that as a filter to the report. 

 

can someone help me with the correct URL filter part so that it will basically prefilter the default Employee matching the user that is loged. I don't want RLS as I want the user to be able to see data also from other users.

 

Thank you 

1 ACCEPTED SOLUTION
jabir_k
Regular Visitor

1 REPLY 1
jabir_k
Regular Visitor

Try this:

"https://app.powerbi.com/embed?dashboardId=11111111-aaaa-1234-aaaa-111111111111&tileId=11111111-aaaa-...&filter=DIM_Empl/IdentityEmail eq '"&Office365Users.MyProfile().Mail&"'

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.