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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

DAX for Complex joins in Tabular Models

Hi I am new to tabular models.

I am trying to implement a complex join. For this I have to use an ID column from the table & deleted = true to connect to the other table.

I am trying to create a calculated column but the syntax is failing. 

Also I just went into SSDT and filtered the "deleted" column on the table but when I make the join deploy the model to DEV SSAS and query it from POWER BI Desktop its bringing back all the values.

 

What is the best approach to reslolve this and get a complez join to work.

4 REPLIES 4
Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous ,

If I understand what you are trying to do, there should be an easy solution in Power Query. Would you provide us with a picture of your tables, and what your end product would look like? You can do this with a pbix, or use Excel to dummy up a set of tables, and paste them into your message.

Thanks,

Nathaniel





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

Proud to be a Super User!




Anonymous
Not applicable

 

This is what I am able to accomplish with my other BI tool with stratight forward SQL Joins

I am trying to accomplish this with Tabular model in Direct Query Mode and based on some research i am trying to create calculated column and Join which is not working.  

 

Table1 

ID,NAME,TYPE, ADDRESS

 

TABLE2 

ID,NAME,TYPE, ADDRESS,DELETED

 

TABLE3

ID,NAME,TYPE, ADDRESS,DELETED,CURRENT 

 

Current Join in BI Model SQL 

Current JOIN IN SQL Table1.ID = Table2.ID AND TABLE2.Deleted =0

Current JOIN IN SQL Table1.ID = Table3.ID AND TABLE3.Deleted =0 AND TABLE3.CURRENT = 'Y'

Sorry, I don't know the implications of direct query.  I am going to reach out to these @v-lid-msft , @Icey  @v-yuta-msft , @Anonymous 
Nathaniel





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

Proud to be a Super User!




Anonymous
Not applicable

So if not direct query do you have an example of a successful complex join inside a tabular model using a  calculated column?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.