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
jdubs
Helper V
Helper V

Show count of records that DON'T MATCH in a relationship

I have a relationship that matches addresses to a zip code table and then groups the row into a "zone" based on the the zip code. But I want to take any rows that fall out if this relationship and dump them into another "zone" and then show this count in a column graph.

 

e.g. Zones 1-8 would contain addresses which match the zip code table. Zone 9 would be any addresses which do not match and could be considered "out of market".

3 REPLIES 3
jdubs
Helper V
Helper V

In this same scenario how would I include the rows that don't match in a relationship in a table?

FreemanZ
Super User
Super User

hi @jdubs 

In your face table, try to add a tag column like this:
IsOutOfMarket =
IF(
 
    RELATED(ZipCodeTable[zone])=BLANK(),
    "YES", "NO"
)
then you can count the rows with "YES".
Greg_Deckler
Community Champion
Community Champion

@jdubs So like

Column = IF(COUNTROWS(RELATEDTABLE('Table'))=BLANK(),"Zone 9",...)


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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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