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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
nathalylopez
New Member

How to list all members of a family (or group) filtering by any of its members

Hi,

 

I have the following data, where the member of the Families A and B are listed.

 

nathalylopez_0-1656605025503.png

 

I want to show the members of the a family when I select a one of its members filtering by PersonId field.

 

For Example:

If I select the PersonId 1728364.

nathalylopez_1-1656605443301.png

 

I want to show the members of the A family as it's shown in the following image:

nathalylopez_2-1656605688649.png

 

I think this could be solved with dax, but I don't how, so I hope you could help me.

 

Thanks.

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

One of ways to solve this is to create disconnected slicer table like below.

Please check the below picture and the attached pbix file.

It is for creating a measure.

 

Untitled.png

 

PersonID Measure: =
VAR _selectedfamily =
    SUMMARIZE (
        FILTER ( ALL ( Data ), Data[PersonID] IN VALUES ( Slicer[PersonID] ) ),
        Data[FamilyID]
    )
RETURN
    IF (
        HASONEVALUE ( Data[Name] ),
        CALCULATE ( MAX ( Data[PersonID] ), Data[FamilyID] = _selectedfamily )
    )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

One of ways to solve this is to create disconnected slicer table like below.

Please check the below picture and the attached pbix file.

It is for creating a measure.

 

Untitled.png

 

PersonID Measure: =
VAR _selectedfamily =
    SUMMARIZE (
        FILTER ( ALL ( Data ), Data[PersonID] IN VALUES ( Slicer[PersonID] ) ),
        Data[FamilyID]
    )
RETURN
    IF (
        HASONEVALUE ( Data[Name] ),
        CALCULATE ( MAX ( Data[PersonID] ), Data[FamilyID] = _selectedfamily )
    )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hi @Jihwan_Kim, how would you change this if a Name can belong to multiple FamilyID?

Jihwan_Kim, thanks a lot for your help.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.