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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Denis_Slav
Helper III
Helper III

Circular dependency Error

Hi All, 

How can I create relationship between "Data" and "Range" to use "Range"[Description] in slicer?

I have two tables. Data:

Value
1
5
3


"Range" diapasons

IDMinMaxDescription

1

01Name1

2

  Name2

3

   

 

I try to add column in "Date" and create reletionship between [IDRange] & [ID].

 

IDRange = 
CALCULATE(
    SUM('03-01 MT_SalaryRange'[RID]),
    FILTER(
        '03-01 MT_SalaryRange',
        '21-01 DS_Headhunter'[21-01 Salary Min Average] >= '03-01 MT_SalaryRange'[Min] &&
        '21-01 DS_Headhunter'[21-01 Salary Min Average] < '03-01 MT_SalaryRange'[Max]
    )
)

 

But has a error: "A circular dependency was detected"

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @Denis_Slav 

 

Have your problem been solved? You should never use a measure inside a calculation of a calculated column, here it is also responsible for the circular dependency as the measure tries to average rows whereas the calculated column just wants to resolve the row context. 

If you still need help, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PhilipTreacy
Super User
Super User

HI @Denis_Slav 

Not very clear.  You say that you have 2 tables called Data and Range but your measure mentions neither of these.  Your measure references tables that you haven't shown any data for.

You say you try to add a column in Date - is that another table?

[IDRange] is a measure - you can't create a relationship between it and anything else.

I can't see from the info you have provided where the circular reference is occuring.

Please try to restate the problem and provide the data you are using - preferably yout PBIX file.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.