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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
jrnhbc
Frequent Visitor

Matrix visual - change root node depending on context

Hello,

 

I've implemented a matrix that shows a heirarchical organisation structure, with details at the end e.g. 

 

  • Org 1 [Totals...]
    • Org 2 [Totals...]
      • Org 3 [Totals...]
        • Detail Field [Values...]
        • Detail Field [Values...]
        • Detail Field [Values...]

 

Each organisations correspond to a logged-in entity e.g. I could log in as Org 2 and would only see my data. However, because the hierachy is flattened (as per the power BI way of handling heirarchies), I can also see Org 1.

 

What I want to see is a matrix that's only relevant to the logged in entity and below, in this case excluding Org 1 and starting from myself, Org 2:

 

  • Org 2 [Totals...]
    • Org 3 [Totals...]
      • Detail Field [Values...]
      • Detail Field [Values...]
      • Detail Field [Values...]

 

The tables are modelled as you'd expect

 

Org (flattened)

  • id
  • Org 1
  • Org 2
  • Org 3
  • etc...

Main Data

  • id
  • field 1
  • field 2
  • etc

 

Nb. In the actual implementation of this, there are up to 10 levels in the hierarchy.

 

2 REPLIES 2
mickey64
Super User
Super User

RLS is already implemented - the hierarchical data is flattened so if a level 3 entity logs in, we'll still see their level 1 and 2 parents. I'm looking into a completely different design in the meantime, whereby level 1 would always represent the logged in entity (no matter what level they actually are in the hierarchy) but this is a lot of work and redesign.

Helpful resources

Announcements
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.