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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Nosh10
Helper II
Helper II

Conditional Formatting by Unrelated Tables

Hello!

 

I need a push solving a problem. 

I have two tables; Table 1: customer ID and email address; Table 2: supplier ID and email address. I would like to show: IF the same email address is in table 1 and table 2, AND have a customer ID and service ID, show email addresses 

 

Table 1
Customer     ID Email Address
334               [email protected]
                     [email protected]
454               [email protected]
122              [email protected]
                    [email protected]
678              [email protected]
                    [email protected]
                    [email protected]
444              [email protected]
876              [email protected]
444             kkgmail.com

Table 2
Supplier      ID Email Address
1113              [email protected]
1112              [email protected]
                      [email protected]
2345              [email protected]
1111              [email protected]
1000              [email protected]
1100             [email protected]
                     [email protected]
                     [email protected]
5678             [email protected]
2000            kkgmail.com

Table 3 - I'm looking for this result (output) Table 3
[email protected]
[email protected]
[email protected]
[email protected]
kkgmail.com

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Nosh10 ,

 

Try this:

Table =
VAR t =
    FILTER (
        CROSSJOIN ( 'Table 1', 'Table 2' ),
        'Table 1'[ID Email Address] = 'Table 2'[ID Email Address]
            && 'Table 1'[Customer] <> BLANK ()
            && 'Table 2'[Supplier] <> BLANK ()
    )
RETURN
    SELECTCOLUMNS ( t, "Email Address", 'Table 1'[ID Email Address] )

email.PNG

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

1 REPLY 1
Icey
Community Support
Community Support

Hi @Nosh10 ,

 

Try this:

Table =
VAR t =
    FILTER (
        CROSSJOIN ( 'Table 1', 'Table 2' ),
        'Table 1'[ID Email Address] = 'Table 2'[ID Email Address]
            && 'Table 1'[Customer] <> BLANK ()
            && 'Table 2'[Supplier] <> BLANK ()
    )
RETURN
    SELECTCOLUMNS ( t, "Email Address", 'Table 1'[ID Email Address] )

email.PNG

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.