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
Syndicate_Admin
Administrator
Administrator

Circular dependency when adding calculated column

Good morning

I have the following problem:

I have 2 tables, related to 1 to 1. They are related by budget number, since it is unique for each one.

I have a measure that is: Total cost as of today (table 1, Current construction costs)/Projected cost (table 2 Projects). The name of the measure: [%_Ejecución_proyecto]

Then, I want to make a column where, according to the % that gives me the previous measure, indicate if it is: Aprov. Material, Initial phase, Execution, Final work and exceeded (if the division is above 1).

Then, I apply the following formula for the calculated column:

Estado_proyecto = Switch( True(),
[%_Ejecución_proyecto] < .15 , "1-Appv. Material",
[%_Ejecución_proyecto] < .35 , "2-Initial",
[%_Ejecución_proyecto] < .75 , "3-Execution",
[%_Ejecución_proyecto] < .99 , "4-Final",
"Over budget"
)
At the end, I get an error: Circular dependance.
I don't understand why.
Can you help me?
Thanks a lot.
Greetings to the whole community.
2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Very good,

It has worked, thank you very much.

With the formula and the process that you have informed me I have been able to assemble a column graph where it shows me, according to the condition, the number of projects I have (initial phase, execution, etc.)

What I wanted is that, selecting one of them, in the matrix where I have the detail of all the budgets, it showed me those that are in the initial phase.

I have followed the tutorial provided and, of course, I do not have to relate the table of budget status conditions with the table where all the budgets appear.

How could I relate them?, so that selecting in the graph only the budgets in the initial phase, in the matrix I would be shown the budgets in the initial phase.

Thanks again.

Best regards

amitchandak
Super User
Super User

@Syndicate_Admin , You can not create a column on a measure. For what you have show you need a table and bucketing

refer examples

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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