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
JoLambrichts
Regular Visitor

How to visualize these two Tables with a bridge table

Hi community,

I'm totally new in Power BI, so this may be a question with a simple answer.
Suppose I have 3 tables:
- Teachers (Id, Name)
- Rooms (Id, Name)
- Reservations (TeacherId, RoomId, reservation date)
Quite simple, a teacher can make a reservation for a room, so one teacher has many rooms, and one room has many teachers.
If a reservation is made, it creates a record in the reservation table.
What I want is a visualization of ALL teacher (as rows) with ALL rooms (as columns), and an indication whether there was a reservation (just a checkmark or the reservation date).

 RoomName 1RoomName 2RoomName 3RoomName 4RoomName 5
TeacherName 1 x x 
TeacherName 2   x 
TeacherName 3xx   


should I use a matrix for this, or... ?
Thank you all for your help.

1 ACCEPTED SOLUTION
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @JoLambrichts,

Please create relationship between Teachers and Reservations(one to many), Rooms and Reservations(one to many), then create a measure using the formula.

 

count = IF(COUNT(Reservations[reservation])>0,"Yes",BLANK())


I try to reproduce your scenario using the following sample tables.

TeachersTeachersRoomsRoomsReservationsReservationsThe relationship I createdThe relationship I created

Then select the Tearchers[Name] as rows, the Rooms as column, the count measure as value. Set the rows and columns to show items with no data, so all the tearchers and rooms names can show.

7.PNGExpected resultsExpected results 

 

Best Regards,
Angelia

View solution in original post

2 REPLIES 2
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @JoLambrichts,

Please create relationship between Teachers and Reservations(one to many), Rooms and Reservations(one to many), then create a measure using the formula.

 

count = IF(COUNT(Reservations[reservation])>0,"Yes",BLANK())


I try to reproduce your scenario using the following sample tables.

TeachersTeachersRoomsRoomsReservationsReservationsThe relationship I createdThe relationship I created

Then select the Tearchers[Name] as rows, the Rooms as column, the count measure as value. Set the rows and columns to show items with no data, so all the tearchers and rooms names can show.

7.PNGExpected resultsExpected results 

 

Best Regards,
Angelia

Thank you for this perfect answer.
Still a lot to learn for me.

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.

Top Solution Authors