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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
admin_xlsior
Post Prodigy
Post Prodigy

power BI embed in Dynamics FO filtering

Hi all,

 

Hope someone here have tried to embed PowerBI in Dynamics 365 F&O. What I want to know is, by looking at this doc ->

Help secure analytical workspaces and reports by using Power BI Embedded - Finance & Operations | Dy...

especially at this point :

  1. Create a new role against a column in the data model that contains the Company field. Name the new role CompanyFilter. A COMPANY field must be present in the data model to restrict access by company.

  2. In the Table filter DAX expression field, enter [COMPANY]=username().

 

I didn;t see how it is working. Since company in F&O is with some 3-4 digit character like "USMF", "DEMF", then when it is filter like point no 2, it is filtering with username(). My understanding this function will return our email id. how it is works then so it can filter my data based on the company ?

 

Thanks

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @admin_xlsior ,

 

This should be a special setting in Dynamics365, the return value of UserName() will not be compared with the value in the [Company] column. Each value in the [Company] column represents a member group of a business unit, and UserName() should be compared with the accounts in the member group.

Company concept in Dataverse 

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-lionel-msft 

 

I'm sorry, but I'm not really understand what are you saying. Also the D365 I'm referring to is D365 F&O which a bit different by no using Dataverse.

 

Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors