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
EVEAdmin
Post Patron
Post Patron

Measure to list customers who are in query A but not in query B

Hi all,

 

I built a report with the tables displayed in the screen shot below.
The table HostedDBs provides the list of all customers: 67
The table Tickets provides the list of customer using a feature: 46

Using another measure as sort of template, I generated this measure. The measure returns Blank instead of 21

Any suggestion on what to do to fix it, please?

ZeroSender = 
var AllStores = DISTINCT(HostedDBs[HDEveCustID])
var ActiveStores = DISTINCT(Tickets[TkCustID])
var NonActiveStores = EXCEPT(AllStores,ActiveStores)
return
IF(HASONEVALUE(HostedDBs[HDEveCustID])
    ,IF(FIRSTNONBLANK(HostedDBs[HDEveCustID],0) in NonActiveStores, 1 , BLANK())
    ,BLANK()
)

 

Snag_28363d3.png

 

1 ACCEPTED SOLUTION
EVEAdmin
Post Patron
Post Patron

l solved this situation with a different approach.

 

I created a Merged Table, with Left Anti (Rows only in the first table) Join option. It works a treat.

View solution in original post

1 REPLY 1
EVEAdmin
Post Patron
Post Patron

l solved this situation with a different approach.

 

I created a Merged Table, with Left Anti (Rows only in the first table) Join option. It works a treat.

Helpful resources

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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