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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

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

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.