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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Boivin12
Regular Visitor

Parent-child hierarchy matrix

I have a matrix that shows the parent-child hierarchy in an organization. With that, I have the number of acces (fro softwares and stuff) that every individual has in a team. Is there a way (like a filter) to show only the access that are common to an entire team and verify it for the level above. 

Boivin12_0-1715605630485.png

 

I made an example: in this case, the 2 value in Red are common for the 3 people of the Org 3 so they would be directly count with the Org 2. 

Boivin12_1-1715605761582.png

 

2 REPLIES 2
v-yifanw-msft
Community Support
Community Support

Hi @Boivin12 ,

Depending on the information you have provided, you can create a new measure:

Count = 
VAR _Access = SELECTEDVALUE( 'Table'[Access] )
VAR _Min =
    CALCULATE (
        MIN ( 'Table'[Parent Org] ),
        FILTER ( ALL ( 'Table' ), 'Table'[Access] = _Access )
    )
RETURN
    CALCULATE (
        COUNTROWS ( 'Table' ),
        FILTER ( 'Table', 'Table'[Parent Org] = _Min )
    )

Final output:

vyifanwmsft_0-1715673571586.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

My problem is that in my real case, I have the access and the Org ID in a table and a second table that display the hierarchy of the Orgs. 

This imply that I have to mix between two table and, in view of the lack of results, I think that Power BI doesn't understand it well.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.