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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
saritart1
Frequent Visitor

Circular Dependency using IF function

 

Hello everyone,

 

I am having problems with the creation of 2 columns.

 

The first one is the following:

 

intensidad columna = if(asistencia[total asistencia por estudiante]<1/3;"Baja";if(and(asistencia[total asistencia por estudiante]>=1/3;asistencia[total asistencia por estudiante]<2/3);"Media";"Alta"))
 
But, when I want to create the second one :
 
intensidad columna 2 = if(asistencia[total asistencia por estudiante clase niño]<1/3;"Baja";if(and(asistencia[total asistencia por estudiante clase niño]>=1/3;asistencia[total asistencia por estudiante clase niño]<2/3);"Media";"Alta"))
 
I have circular dependency problem.
 
To better understand where the data comes from, 
 
The first column comes from a measure "asistencia[total asistencia por estudiante]" and its expression is: 
 
total asistencia por estudiante = calculate(divide(sum(asistencia[Asistencia]);max(asistencia[Clase])))*100
Both "asistencia[Asistencia]" and "asistencia[Clase]" are columns.
 
The second column comes from the measure "asistencia[total asistencia por estudiante clase niño]" with the following expression:
 
total asistencia por estudiante clase niño = calculate(divide(sum(asistencia[Asistencia]);max(asistencia[Clase niño])))*100
Both "asistencia[Asistencia]" and "asistencia[Clase niño]" are columns.
 
Now, as I see it, there is no circular dependency, so I don`t know how to fix the problem.
 
Any help will be more than welcomed. 
 
Thank you very much,
 
1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @saritart1,

 

Can you share a small dummy sample? Please mask the sensitive parts first.

If you add a column, it will become a new context. So if you add new columns, they could influence the old one. The details depend on your data.

 

Best Regards,

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.