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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
esgaranel
Frequent Visitor

Help with this calculation

Hi, I need help with this:

 

From the table that is included in the attached file, I calculate the following 3 measurements:

 

1) Total Population = SUM( 'Singapore_Salary_Range'[Population] )


2) Cumulative_population =
CALCULATE(
//expresion
SUM(Singapore_Salary_Range[Population]),
//filtro
FILTER(
//tabla o expresion que retorna una tabla
ALL(Singapore_Salary_Range),
Singapore_Salary_Range[Salary range (from)]<=MAX(Singapore_Salary_Range[Salary range (from)])
)
)


3) Cumulative population (%) =
DIVIDE(
//numerdor
[Cumulative_population],
//denominador
[Total population]
)

 

Measure number 3 gives the following error: "Circular dependency detected."

How can I perform this calculation without getting an error?

 

Attached POWER BI file

https://drive.google.com/file/d/13pIdCP_0kDA3N5jwC9IzEht8P4q5EZOa/view?usp=sharing

 

Thank you

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

1 REPLY 1
Ahmedx
Super User
Super User

pls try this

Screen Capture #1229.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.