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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.