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