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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
DRJ1994
Helper I
Helper I

Trouble creating relationship

Good morning all,

 

I hope somebody can help with my query.

 

I am trying to create a relationship between two tables in my report.

 

I think the relationship should be 1 to Many, however PBI is only letting me add the relationship as many to many.

 

DRJ1994_1-1657018098674.png

 

The relationship goes from 'Name' in the department table, to 'NeighbourhoodManager' in the voids table. The names in the department table should be unique and only occur once, and there will be more than one instance of the same names in the voids table. Does anyone know how I can fix this? The issue is when I am trying to filter and slice it is not letting me do it because of the cardinality with the relationship.

 

DRJ1994_2-1657018238725.png

Any tips would be greatly appreciated.

 

Thanks in advance.

DRJ

 

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Is it possible that you have names in the Voids table which aren't in the Department table?

You could create a bridge table like

Name Bridge Table = DISTINCT( UNION(
ALLNOBLANKROW('Department'[Name]),
ALLNOBLANKROW('Voids'[Name])
))

and then create one-to-many relationships from that new table to both existing tables. Use the column from the bridge table in your visuals.

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

Is it possible that you have names in the Voids table which aren't in the Department table?

You could create a bridge table like

Name Bridge Table = DISTINCT( UNION(
ALLNOBLANKROW('Department'[Name]),
ALLNOBLANKROW('Voids'[Name])
))

and then create one-to-many relationships from that new table to both existing tables. Use the column from the bridge table in your visuals.

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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