cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
RizzLearn Frequent Visitor
Frequent Visitor

How to find which customers are in Both Categories ?

Hi All Gurus,

This site really helping me on my 1st steps of DAX.

 

My question is, is there any way to find which customers are in both Groups and the total?

 

Example ,  A Group :  UserId:   1, 3 , 5 , 6 

                 B Group :   UserID:  3 , 5, 8  

            BothGroup :  3, 5 

 

I need to find out how to achieve Result BothGroup which is 3, 5 because these customers are in Both Group.

Thanks in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: How to find which customers are in Both Categories ?

@RizzLearn -

Store each group in a variable and then try the NATURALINNERJOIN orINTERSECT functions. Something like:

 

var a = <customer list 1>
var b = <customer list 2>
var c = NATURALINNERJOIN(a,b)

Cheers!

Nathan

View solution in original post

2 REPLIES 2
Super User
Super User

Re: How to find which customers are in Both Categories ?

@RizzLearn -

Store each group in a variable and then try the NATURALINNERJOIN orINTERSECT functions. Something like:

 

var a = <customer list 1>
var b = <customer list 2>
var c = NATURALINNERJOIN(a,b)

Cheers!

Nathan

View solution in original post

RizzLearn Frequent Visitor
Frequent Visitor

Re: How to find which customers are in Both Categories ?

Thanks Nathan

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 46 members 904 guests
Please welcome our newest community members: