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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
sjpaq
Helper I
Helper I

Calculated column using inactive relationship

I have 2 calculated columns in a table that use an inactive relationship to a date dimension table. The first column works fine and the second column gives a circular reference error.

First Column

Breach Rpt Date = CALCULATE(
    Min('cda datedim'[Date]),USERELATIONSHIP('cda breach'[Breach Reporting Date],'cda datedim'[DateId]
    ))
This returns the correct value, a date 
Second Column
Breach Rpt Fiscal Year = CALCULATE(
    Min('cda datedim'[FiscalYear]),USERELATIONSHIP('cda breach'[Breach Reporting Date],'cda datedim'[DateId]
    )) 
The 2 expressions are identical except that the column selected (highlighted in red) in each is different. Why does the second give a circular reference error as in:
sjpaq_0-1675093169221.png

 Thanks in advance

1 REPLY 1
Anonymous
Not applicable

Hi @sjpaq,

Perhaps you can try to directly extract the current table value as conditional to filter and get the correspond table records to stored into the variable.

Then you can and manually use this in the formulas without USERELATIONSHIP function. (I think the issue should related to USERELATIONSHIP function and it may generate the temp relationship mappings for the calculations)

Understanding circular dependencies in DAX - SQLBI
Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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