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
Anonymous
Not applicable

Filter table by column value and compare with another table column to find missing values

Hello

 

I have two tables - the first one with the list of names who have sent their sales data based on the week number:

MakeItReal_1-1639017305153.png

 

And another table with the reference list of all names:

MakeItReal_0-1639017721198.png

 

These two tables are updated constantly so the process should be dynamic. The goal is to have a table with the list of names which have not submitted their sales data for each week number from the first table. I think maybe the best way is to create a new dynamic table with two columns with the week number from the first table and the list of names who have not submitted for that week number. I am new to using Power Query and Power BI but from my research and understanding, i should use Power Query instead of DAX to achieve this?

 

So, to achieve the desired result, my approach (please feel free to correct me if there is a better or more efficient way) would be to first sort by week number and then make a list of those names and then compare the list of names with the reference list of names and then have a new table created with the list of names which are missing from the sales table. Is this method or way of thinking is correct, then i have no idea how to proceed. What M code to use?

 

Thanks in advance for any help!!

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Usually Power Query is bit faster, that is why we prefer it. In this case DAX can also suite, As dax has some direct functions

 

new table in dax =

except(crossjoin(distinct(Table1[week]), Table2[Reference List of name]), summarize(Tabel1, Table[Week] Table2[Name]) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Top Kudoed Authors