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

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

Reply
guyatisk
Helper II
Helper II

Two related tables - hide second table list until primary record selected

I have a page with two tables that are related by a project ID.  The first table is the project header information and the second table is a list of notes for related projects (1:N, on to many) relationship.  When the page displays it shows ALL records for both lists. What I would like is to suppress the notes until a project is selected from the first table.  I would like to do this without using a slicer.  What first comes to mind is creating a measure (or table variable) from the selected primary table record.  Is there a way to suppress the list of notes and only show the notes of the selected record?

 

Thanks for the information.

1 ACCEPTED SOLUTION
MNedix
Super User
Super User

That's indeed a strange behavior. What I tested so far is:

1. if the columns are in the same table the behavior is what you described

2. if you do the suggested solution between two related tables then it works properly (completely hiding table 2 if nothing is selected in table 1)

 

MNedix_0-1729109927758.png

 

MNedix_1-1729110066445.png

 

Try creating a new table, only with the unique ProjectIDs, create a relationship with your Table1, create the Selected measure based on the new table and do the the rest.



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,

View solution in original post

4 REPLIES 4
MNedix
Super User
Super User

That's indeed a strange behavior. What I tested so far is:

1. if the columns are in the same table the behavior is what you described

2. if you do the suggested solution between two related tables then it works properly (completely hiding table 2 if nothing is selected in table 1)

 

MNedix_0-1729109927758.png

 

MNedix_1-1729110066445.png

 

Try creating a new table, only with the unique ProjectIDs, create a relationship with your Table1, create the Selected measure based on the new table and do the the rest.



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,
MNedix
Super User
Super User

Heya,

I may misunderstand your scenario but I'm thinking a measure based on Table 1 which you can use as a filter (in the Filter Panel) for Table 2.

 

The measure would be somethign like:

Selected = IF(NOT ISBLANK(SELECTEDVALUE('Table1'[ProjectID])),1,0)

 

You then put this measure as a filter in Filter panel for table 2 and set it to show when 1 (see below):

MNedix_0-1729104489073.png

 

Hope it helps.



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,

Thank you!!!  I originally put the measure in the first table and moved it into the second (not sure if that mattered) and made sure my syntax was correct.  But now it is working as expected.  Have a great day!

This did put me in a good direction, but is there a way to NOT list ALL the comments in the second table when there is NOTHING selected in the first table?  When the report is first opened, there is nothing selected in the primary table and it shows all comments made in the second table, which is confusing.

Helpful resources

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.