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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Account6910
Frequent Visitor

Identify entries not present in 2nd table

Hi, I have two tables:

  • Table 1 is a list of transactions with many columns EG "AuditTrail" , "£", "Nominal Account" etc

  • Table 2 is derived from a number of project files and essentially allocates audit trail transactions against different projects, for simplicity it has two columns "UniqueProjectCostRef" & "AuditTrail"

The aim is to analyse the "AuditTrail" transactions that are not matched against a "UniqueProjectCostRef".

 

In PowerQuery I can merge Table 2 into Table 1, expand the "UniqueProjectCostRef" then in my PowerBi Matrix filter by null. But I want to avoid unnecessary merges

 

So Far I have:

  1. Created a relationship between the two tables using the "AuditTrail" columns.

  2. Created a matrix visualisation with 2 rows(Table1[AuditTrail]), (Table2[UniqueProjectCostRef]), and 1 value (Table1[£])

  3. On the (Table2[UniqueProjectCostRef]) row I have selected "Show items with no data"

This creates a table with 50,000 audit trail transactions matched relevant unique cost code & that shows blanks where not matched - how do I filter this to only show the gaps?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Account6910 , You can use anti join in power query

https://docs.microsoft.com/en-us/power-query/merge-queries-left-anti

 

Except - https://powerbidocs.com/2020/11/10/except-dax-function-in-power-bi/

 

Check isblank and common dimension.

 

Just have the same period data and use the lost formula 

 

https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Account6910 , You can use anti join in power query

https://docs.microsoft.com/en-us/power-query/merge-queries-left-anti

 

Except - https://powerbidocs.com/2020/11/10/except-dax-function-in-power-bi/

 

Check isblank and common dimension.

 

Just have the same period data and use the lost formula 

 

https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-1-Month-on-Month-Retention/b...

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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