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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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...

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...

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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