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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

How to embed Power BI report in Dynamics 365 with two filters?

Hi, 

I have a Power BI Report embedded in Dynamics 365 on a Account Form. I already added a filter so that the report is filtered based on the selected Account. 

<PowerBIFilter>{"Filter":"[{\"$schema\":\"basic\",\"target\":{\"table\":\"accounts\",\"column\":\"accountid\"},\"operator\":\"In\",\"values\":[$a],\"filterType\":1}]","Alias":{"$a":"accountid"}}</PowerBIFilter>

 

This filter works fine. 

The Report now needs to be filtered both on Account AND on the user who is currently logged in to Dynamics 365. 

 

I tried the add a second filter, but it doesn't work unfortunately. 

<PowerBIFilter>{"Filter":"[{\"$schema\":\"basic\",\"target\":{\"table\":\"accounts\",\"column\":\"accountid\"},\"operator\":\"In\",\"values\":[$a],\"filterType\":1},{\"$schema\":\"basic\",\"target\":{\"table\":\"contacts\",\"column\":\"contactid\"},\"operator\":\"In\",\"values\":[$b],\"filterType\":1}]","Alias":{"$a":"accountid","$b":"contactid"}} 

</PowerBIFilter>

 

So the question is, can I add multiple filters (from 2 different entities) to filter the report as desired? (based on the selected account AND on the user who is currently logged into Dynamics 365) 

 

 

Looking forward to your response

Thanks!

 

 

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors