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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Borjaveigasvh
Regular Visitor

Problema con referencia circular

Buenos días, 

 

estoy creando dos columnas calculadas en una tabla y siempre que hago la segunda me dice que tiene referencia circular cuando no veo la relacion entre ellas. Me podeis echar uan mano con esto?

Esta es la primera que pongo:

Rep. fchaactual =
CALCULATE (
MAX ( CCAA_PRICE_HOUSING_EVOLUTION[PRICE_M2] );
FILTER (
RELATEDTABLE ( CCAA_PRICE_HOUSING_EVOLUTION );
RELATED ( 'CCAA dimension'[ID_CCAA_INE]) = CCAA_PRICE_HOUSING_EVOLUTION[ID_CCAA_INE]
);
FILTER (
RELATEDTABLE ( CCAA_PRICE_HOUSING_EVOLUTION );
MAX ( CCAA_PRICE_HOUSING_EVOLUTION[DATE_PRICE] )=CCAA_PRICE_HOUSING_EVOLUTION[DATE_PRICE]
)
)

La segunda que creo:

 

Rep.fechaventa Appraisal =
IF(
'Output'[Date of Appraisal] < DATE ( 2006; 1; 1 );
CALCULATE (
MIN ( CCAA_PRICE_HOUSING_EVOLUTION[PRICE_M2] );
FILTER (
RELATEDTABLE ( CCAA_PRICE_HOUSING_EVOLUTION );
RELATED ( 'CCAA dimension'[ID_CCAA_INE] ) = CCAA_PRICE_HOUSING_EVOLUTION[ID_CCAA_INE]
)
);
CALCULATE (
MAX ( CCAA_PRICE_HOUSING_EVOLUTION[PRICE_M2] );
FILTER (
RELATEDTABLE ( CCAA_PRICE_HOUSING_EVOLUTION );
MONTH ( EARLIER ( Output[Date of Appraisal]) )
= MONTH ( CCAA_PRICE_HOUSING_EVOLUTION[DATE_PRICE] )
&& YEAR ( EARLIER ( Output[Date of Appraisal] ) )
= YEAR ( CCAA_PRICE_HOUSING_EVOLUTION[DATE_PRICE] )
);
FILTER (
RELATEDTABLE ( CCAA_PRICE_HOUSING_EVOLUTION );
RELATED ('CCAA dimension'[ID_CCAA_INE]) = CCAA_PRICE_HOUSING_EVOLUTION[ID_CCAA_INE]
)
))

 

 

El mensaje de error que aparece es: "Se detecto una cependencia cisrcular 'TABLA'[Columna],'TABLA'[Rep. fechaactual],Output[Columna]

 

Muchas gracias 

1 ACCEPTED SOLUTION

Thanks for sharing, I found the problem, it was in how my tables had the relation created. 

 

I had selected both in one of the tables that needed to be single, and was creating the circular problem.

 

Best

Borja 

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

Create these columns in Power Query instead.

Thanks for sharing, I found the problem, it was in how my tables had the relation created. 

 

I had selected both in one of the tables that needed to be single, and was creating the circular problem.

 

Best

Borja 

But do you know howcome those two calculated columns create a circular reference? their calculation is not dependent on the previous column so I do not understand the reason.

 

Thanks for sharing knowledge

 

Regards

Borja 

 

 

l'll try to do so. thanks for the tip. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors