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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
EVEAdmin
Helper V
Helper V

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

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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