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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.