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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
LangeJan
Helper I
Helper I

How to show data from three related tables?

I am trying to create a relationship between three tables from AX2009.

  1. Salestable,
  2. Salesline
  3. Custinvoicejour

 

Related column between all tables is SalesID.

SalesID will always exist in Salestable. SalesID not always exists in Salesline or Custinvoicejour.

I can display data in my visual if I connect only two of the tables. But as soon as I connect all three tables I get error in my visual visual.

 

LangeJan_0-1666782886248.png

 

Visual with only two tables related.

LangeJan_1-1666783038719.png

 

Visual with all three tables related

LangeJan_2-1666783086898.png

 

 

I expected my visual to show three columns of empty data in the fields where there is no data. Like example below. Is tha possible in PBI?

salestable.salesidsalesline.salesidcustinvoicejour.salesid
123456123456123456
123457123457Null
123458NullNull

 

 

Thank you

 

 

1 ACCEPTED SOLUTION
LangeJan
Helper I
Helper I

I have solved my challenge by dropping the relationship between salestable and custinvoicejour. I have chosen that salestable and custinvoicjour exist as two separate fact tables that refer to the same dimension tables. It works.

View solution in original post

3 REPLIES 3
LangeJan
Helper I
Helper I

I have solved my challenge by dropping the relationship between salestable and custinvoicejour. I have chosen that salestable and custinvoicjour exist as two separate fact tables that refer to the same dimension tables. It works.

LangeJan
Helper I
Helper I

@v-zhangti Thanks for your reply.

The result you show is exactly what I'm looking for, but I can't get that result out in my visual.

The relation between Salestable and Custinvoicejour/Salesline is one-to-many. Not one to one as in your example.

I have changed the cross filter direction as in your example, with no luck.

LangeJan_0-1666864434914.png

 

 

v-zhangti
Community Support
Community Support

Hi, @LangeJan 

 

Set the relationship between the three tables as shown.

vzhangti_0-1666854039472.pngvzhangti_1-1666854069569.png

Result:

vzhangti_2-1666854141047.png

Is this the result you expect?

Best Regards,

Community Support Team _Charlotte

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors