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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.