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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
amir_mm
Helper III
Helper III

Groups and sub-groups in one report

Hi,

We have an Accounts table in SQL Server where each account has a unique ID. We have Power BI Premium Embedded, where we do not apply any RLS within Power BI. However, when a client logs into our application, the AccountID is filtered based on the user's credentials and selected account, allowing them to see only the reports linked to their account and not to others.

 

Now, I want to create a new report for grouped accounts. For example, an account can have multiple sub-group accounts, and we want to display all of them in one report. If I’m correct, I should add a new column to the Accounts table for a GroupID, so both the group and sub-group accounts will have a unique GroupID.

 

How should I handle the filtering aspect? For instance, if the UI filters the account to AccountID=1, the user should be able to see reports for any accounts with the same GroupID.

 

Do you have any ideas on how I can implement this type of group reporting?

 

Thanks a lot!

1 REPLY 1
AllisonKennedy
Super User
Super User

@amir_mm  I'm not very familiar with PBI embedded, so may not be the best person to help, but I'm intrigued.

 

How are you acheiving the filter currently? You should be able to apply the same logic, just swap to the group column instead of the accountID column? Or you may need to use an IN logic rather than =


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.