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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
IvanS
Helper V
Helper V

Issue with relationship between 2 calculated columns

Dear all,

 

I am struggling with creation of relationship between 2 calculated columns.

 

I have 2 tables: 

pbi DIM_EIPA_Connectors (dimension table)

pbi FACT_EIPA_Connectors (fact table)

 

In both tables I have created unique identifier using calculated columns - the function is using column index to add a suffix in order to ensure that the entries are unique.

Connector_ID =
'pbi DIM_EIPA_Connectors'[data.id]
&
RANKX(
FILTER('pbi DIM_EIPA_Connectors',
'pbi DIM_EIPA_Connectors'[data.id]=EARLIER('pbi DIM_EIPA_Connectors'[data.id])
),
'pbi DIM_EIPA_Connectors'[Index],,ASC)

 

 IvanS_0-1641916611444.png

Now, I have removed all relationships that might impact those 2 tables. Then I am trying to create the relationship between those two columns.IvanS_2-1641916955845.png

 Following is the error - I would expect to have one-to-one relation or (one-to-many/many-to-one) but there is issue with all types of relation incl. many-to-many.

 

IvanS_3-1641917643654.png

I exported the data into excel to check if there are any duplicates or blank values but there isn't any.

 Any help is much appreciated!

Ivan

 

1 ACCEPTED SOLUTION
smpa01
Community Champion
Community Champion

@IvanS  if you are absolutely sure that there are only a single instance, then blank values are driving that Cardinality (Many to Many)

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

3 REPLIES 3
smpa01
Community Champion
Community Champion

@IvanS  if you are absolutely sure that there are only a single instance, then blank values are driving that Cardinality (Many to Many)

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

You are right, I oversee the blank entries. 🙂 Thank you for help!

Blank values in dim or fact table?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.