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
Haleem
Helper III
Helper III

Dynamic RLS with UserName() and Multiple Cost Centers and Cost Centers Nodes in hierarchy

My sample files are here
https://1drv.ms/f/s!AtMKO3vGEsG5gSQODCatb86kNR48


In continuation of my previous post which was resolved 
Dynamic RLS with UserName() and Multiple Cost Centers and Cost Centers Nodes in hierarchy 

 

Now I would like to ruplicate SAP BW Access file to Power BI. Access File is today managed in Excel and being uploaded to BW in order to control access rights of our SAP BI Cost Reports.

 

I would like to use the same file and upload it to Power BI in order to manage the access rights of users automatically using the USERNAME() in Power BI cost reports, to avoid maintaining parellel two access files. 

 

Problems:

None of the below table contains UNIQUE field!!!!!!

 

1. Access file contains combination of USER, Cost Center and/or Nodes

2. Data tables contains only Cost Center column not nodes

3. But we have separate file which contains Cost Centers Per node.. so how to replaces nodes in Access file (in point 1) with the cost centers 

4. how to link Access file to the Data File and then apply USERNAME function on access file in order to limit the user to see cost center he/she is having access to. 

 

 

What I ideally want: 

1. Upload all the three files to Power BI

2. Replace Nodes in Access File with relevant Cost Centers and link Access file to the Data file

3. Use USERNAME function through RLS Roles in order to manage the access rights automatically. 

 

Below is the overview of each of Sample tables. 

 

1. Data Table

Data table.png

 

 

2. Access File

 

Access File.png

 

3. Nodes and Cost Centers

Nodes vs. Cost Centers.png

2 REPLIES 2

Hi @Haleem ,

here my solution on your sample data.
I hope it helps.

 

PBIX

 

Access.png

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


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.