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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Managing relationship many-to-one - show blanks for 'one-table' if no value is found in 'many-table'

Hello community,

 

My apologies in advance if this topic is already handled elsewhere.

 

I have two tables.

1. The order table contains order lines (one line per order) with order information

2. the part table contains part information for orders, with multiple lines possible per order.

 

Not every order in the order table has part information (see O3), and the part table has order id's that are not in the the order table (see O5)

 

order table.png  part table.png

 

I can create a relationship for the tables with cross filter in single and both directions.

relation.png

 

However, when trying to combine data from both tables in a visual, it appears that data for which no part data can be found is left out.

 

I get this output

outcome.png

While i was hoping to get this output where order O3 is also included, but with blank part information

 

order from orderorder from partspart
O1O1jeans
O1O1shirt
O1O1sweater
O2O2jeans
O2O2shirt
O3  
O4O4jeans
 O5sweater

 

Any tips on how to solve this?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, 

 

If you click on your table, then on the tool panel on the right when you have selected the items to appear in the table - click on the small arrow next to 'Order from Order' and select 'Show Items with No Data' (usually works for me) 

 

Thanks

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Thanks for the help everyone. I recreated the excisting table and using the 'show items with no data' option. This worked this time

Smauro
Solution Sage
Solution Sage

Hello @Anonymous,

The issue is on the Many-to-One relationship, and it's actually not an issue. Let me explain.

The many side of the Many-to-One relationship, 'part' table is seen as the point of reference in the table visual you're trying to create. In 'part' there is no O3, and hence the algorimth does not even look for it in order to display it:

It first looks at the values of 'part table'[order] and then it connects them to any existing in 'order table'[order]. After finding the matches from 'part' to 'order', because the relationship is bidirectional it says that "from those you found, filter accordingly both ways.
Your confusion is on that a bidirectional Many-to-One is not a One-to-Many and a Many-to-One combined.

 

The easiest way I could think of solving your issue is to do a Full Outer merge in the Query editor between the two tables using the [order] columns.




Spyros Mavroforos

Data Consultant


Find me on LinkedIn or drop me an email

eSpyros

I believe @Smauro is correct.

You need to merge the tables in the editor, where you will be able to do a full outer join to get what you want.

Anonymous
Not applicable

Hi, 

 

If you click on your table, then on the tool panel on the right when you have selected the items to appear in the table - click on the small arrow next to 'Order from Order' and select 'Show Items with No Data' (usually works for me) 

 

Thanks

Anonymous
Not applicable

Thank you JamesBI2. Unfortunatly this does not work

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.