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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 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.

Top Solution Authors