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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Advocate II
Advocate II

Teams workgroup as RLS filter in Power BI


How to use Teams Worgruop name to RLS Filter Power Bi raport published in this Teams gruop
We have group for every big client and we want to have filtered to only this client data raport shown.

We have one raport os whole sale with RLS to Key Acount level , but now we want to deeper with filtering .
We share this raport with link and in link is added filter with client number and it was working until update of Teams. Link is fine and worki but u have click link it dosent star in Teams.

Community Support
Community Support

Hi @wzkoral 


You need a dynamic RLS to your report for different clients.  Below are the references for desktop and serivce.


Best Regards,

I know and we already have dynamic RLS with userprincipalname() DAX function. But we need anather dynamic filter by User group in Teams.

One person have few clients and in specyfic client workgroup raport should shown only data for that person and that client .
That why we are looking how to read workgroup name from teams to Power BI , rest to do RLS with it its easy.

Hi @wzkoral


First,you need to create a group table,such as below:


Annotation 2020-02-18 164131.png


Then make a definition about each group returns what kind of value.

For the reference,you can turn to the blog here.


Best Regards,
Did I answer your question? Mark my post as a solution!

But i need to get the MS Teams workgroup name. Not workgroup with I specife by my self in the table.

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Power BI Header Change

Power BI Header Update

Read about the exciting updates for the Power BI forum.