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

Compare values between 2 tables, related via a lookup table

Hello!

 

I have 3 tables involved here.

 

Incident - Contains (amongst other things) the Incident ID and Priority

Problem - Contains (amongst other things) the Problem ID and Priority

Cross Ref - Contains the Incident ID and Problem ID, and is used to relate the above two tables (Using Many to One, two way relationships).

 

I am trying to compare Priority from both tables, but can't figure out how to do it!

 

I'm trying 'Related' but when I use the following Function from the Problem table:

 

PriorityMatch = IF(RELATED('Incident'[Priority])=[Priority],1,0)

 

I get the following error:

 

The column 'Incident[Priority]' either doesn't exist or doesn't have a relationship to any table available in the current context.

 

Does 'Related' only work with directly related tables? 

 

Thanks 🙂

1 REPLY 1
amitchandak
Super User
Super User

Refer two this blog how can have datediff using common table as a measure , in your case you do not have date diff you have to compare the number

https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-2-Date-Differ...

 

Check this file how the data is copied to common order dim for date diff.  You can copy to you common table and match as column

https://www.dropbox.com/s/y47ah38sr157l7t/Order_delivery_date_diff.pbix?dl=0

 

Appreciate your Kudos.

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

Power BI Monthly Update - November 2025

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

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!

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