cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EVEAdmin Member
Member

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

Accepted Solutions
EVEAdmin Member
Member

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

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

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

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

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 339 members 3,489 guests
Please welcome our newest community members: