Forum Discussion

IvanS's avatar
IvanS
Helper V
4 years ago
Solved

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)

 

 

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

 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.

 

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

 

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

3 Replies

  • smpa01's avatar
    smpa01
    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)

    • IvanS's avatar
      IvanS
      Helper V

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

      • Anonymous's avatar
        Anonymous
        Not applicable

        Blank values in dim or fact table?