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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
azlocal21
Frequent Visitor

How to check if a column in 1 table matches with a column in another table

Hello there,

 

I'm trying to create a dashboard for attendance of weekly learning sessions. I want to call out individuals who have not attended the session selected.

 

I have two tables:


1. 'Master' - A master roster

Name

Person1

Person2
Person3
Person4
Person5

 

2. 'AllSessions' - Running list of all session attendance reports

NameSessionTitle

Person1

SessionA

Person2SessionA
Person4SessionA
Person1SessionB
Person2SessionB
Person3SessionB
Person4SessionB
Person1SessionC
Person2SessionC
Person3SessionC
Person4SessionC

 

Both have a common column of [Name]. I would like to check if Master[Name] = AllSessions[Name].

 

There will be multiple matches (ideally the individuals are attending every unique session). I'm hoping to add slicers to the dashboard that would allow someone to isolate the AllSessions[SessionTitle] column to a particular session giving us a list of crew who did not attend that session. If possible, it would be nice to do add a count of how many unique sessions have occurred and a count of how many unique sessions an individual has attended.

 

Using the sample data this is sort of what I'm looking for as the end result:
If a SessionTitle Slicer set to: SessionB

Crew who missed session: Person5

SessionTitle distinct count: 1

 

or

 

If a SessionTitle Slicer is set to: All

Crew who missed session: Person5 (missed 3 sessions), Person3 (missed 1 session)

SessionTitle disctint count: 3


I've tried Measures and Custom Columns and looked at different articles but was not finding anything that made sense to me.

 

Any help is greatly appreciated! 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @azlocal21 ,

 

You'll have to create another table that has all the possible combinations of Name and Session and use that instead. Please try this pbix.

danextian_0-1711581954172.png

danextian_1-1711581966188.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

1 REPLY 1
danextian
Super User
Super User

Hi @azlocal21 ,

 

You'll have to create another table that has all the possible combinations of Name and Session and use that instead. Please try this pbix.

danextian_0-1711581954172.png

danextian_1-1711581966188.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.