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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
dsdesrosiers
Helper I
Helper I

NATURALLEFTOUTERJOIN producing no common column error

Hey all 

 

Getting an error with the below DAX - NATURALLEFTOUTERJOIN requires at least one common join column. As you can see, I have EMAIL in both Tables ... each table will evaluate and produce correct results within it's own context without error so that's not the issue per se (though there maybe something in the details causing my problem obviously).  I am doing this in DAX Studio because eventually I need it in a Power BI Report Builder report outside of Desktop. 

I see something from Marco about breaking data lineages (https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/) but I don't understand how to apply it to my scenaro.

Any help would be appreciated. 

Danielle

DEFINE 

    TABLE AE_EMAILS = 
        SELECTCOLUMNS(
            FILTER (
                SUMMARIZECOLUMNS(
                    Cleanup[EMAIL_VALIDATION]
                ),
            [EMAIL_VALIDATION] <> BLANK()
            ),
        "EMAIL", [EMAIL_VALIDATION]
            )
        
    TABLE SYSTEM_INFO = 
        SELECTCOLUMNS(
        
            SUMMARIZECOLUMNS(
                SYSTEM_USERS_ALL[Active],
                SYSTEM_USERS_ALL[User Role],
                SYSTEM_USERS_ALL[License Type],
                SYSTEM_USERS_ALL[Username]
            ),
                
        "EMAIL", [Username],
        "ACTIVE", [Active],
        "USERROLE", [User Role],
        "LICENSETYPE", [License Type]
        )
    
EVALUATE NATURALLEFTOUTERJOIN (AE_EMAILS, SYSTEM_INFO)

1 REPLY 1
some_bih
Super User
Super User

Hi @dsdesrosiers 

Check link and yellow part from example. 

In your example no column [EMAIL_VALIDATION] in secon table.

 

https://dax.guide/naturalleftouterjoin/ 

some_bih_0-1695970028620.png

Hope this help, kudos appreciated.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors