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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
Super User
Super User

@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
Super User
Super User

@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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Kudoed Authors