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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
czaldumbide
Helper II
Helper II

Calculated column comparing values between tables with a 1 to many relationship

Hey guys,

 

I am having trouble creating a calculated column that compares values between two tables with a 1 to many relationship and a filtered date. 

 

I have an ACCOUNTS table that contains the column Account Number as a unique key. I have another table called DUE-DILIGENCE

that contains the column of Account Number(non-unique) and a Date Column. The relationship between these tables is 1 to many with Account Number as the key. 

 

Now in my dashboard I have a table that has all Account Numbers as a column as seen below, and I would like to add another column identifying with a yes/no those that are also found in the DUE-DILIGENCE for the specific month and year that the user selects in a slicer. Let me know any suggestions on how I could do this. 

is DD.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks!

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Measure = COUNTROWS(RELATEDTABLE('DUE-DILIGENCE')

 

Filter on that measure not blank.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Measure = COUNTROWS(RELATEDTABLE('DUE-DILIGENCE')

 

Filter on that measure not blank.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks for the solution. I created the measure that you suggested and then used it on a calculated column as follows

 

DD = if([Measure] = BLANK(), "No", "Yes")

 

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.