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
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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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