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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

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.