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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Klaud
Frequent Visitor

Find missing/blank values from two specific columns for two tables that are linked by "bridge table"

Hi,

 

My task is to compare the values in two fact tables that are linked by a bridge table and find missing information based on the missing primary key.

 

For instance, table A has data for one primary key but table B doesn't and vice versa and what would be the best way to visually flag these.

 

Thanks

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Klaud ,

I created some data:

Main_Table:

vyangliumsft_0-1693880970716.png

TableA:

vyangliumsft_1-1693880970719.png

TableB:

vyangliumsft_2-1693880987921.png

 

Here are the steps you can follow:

1. Create measure.

Measure =
var _columnA=
SELECTCOLUMNS('TableB',"DateB",[Date])
var _columnmain=
SELECTCOLUMNS(
    FILTER(ALL(Main_Table),
    'Main_Table'[Date] in _columnA),"Indexmain",'Main_Table'[Index])
return
IF(
    MAX('TableA'[Index]) in _columnmain,"red")

2. Select TableA [Group] – Conditional formatting – Background color.

vyangliumsft_3-1693880987924.png

vyangliumsft_4-1693881027224.png

3. Result:

vyangliumsft_5-1693881027226.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi  @Klaud ,

I created some data:

Main_Table:

vyangliumsft_0-1693880970716.png

TableA:

vyangliumsft_1-1693880970719.png

TableB:

vyangliumsft_2-1693880987921.png

 

Here are the steps you can follow:

1. Create measure.

Measure =
var _columnA=
SELECTCOLUMNS('TableB',"DateB",[Date])
var _columnmain=
SELECTCOLUMNS(
    FILTER(ALL(Main_Table),
    'Main_Table'[Date] in _columnA),"Indexmain",'Main_Table'[Index])
return
IF(
    MAX('TableA'[Index]) in _columnmain,"red")

2. Select TableA [Group] – Conditional formatting – Background color.

vyangliumsft_3-1693880987924.png

vyangliumsft_4-1693881027224.png

3. Result:

vyangliumsft_5-1693881027226.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Thanks!

 

Exactly the answer I was looking for. Appreciate it 🙂

amitchandak
Super User
Super User

@Klaud , Create two measures

M1 = countrows(Table1)

 

M2 = countrows(Table2)

 

Now you can count missing in table 1 for a give dim  like

 

countx(Values(DIm[Key]), if(isblank([M1]), [Key], Blank()) )

 

for Table 2

 

countx(Values(DIm[Key]), if(isblank([M2]), [Key], Blank()) )

 

Logic would be similar to

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

 

But you have measures from different tables

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors
Top Kudoed Authors