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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
jmnigrelli
Regular Visitor

Circular Dependency Issue

I have a column to calculate % Failures by taking a column I created to sum failures, and a measure I used to count rows.

I need to multiply one % failures by 45 and another % failures by 200, as the failure rates apply to different sample sizes.

When I make my measure, % Failures = (Total failures / (Total count)*45)*100, this works. But when I make a new measure and replace 45 with 200, I get "A circular dependency was detected". 

 

How can this be bypassed? I've tried creating new columns and measures to try and make them independent of each other but am having little luck.

 

Thank you!

3 REPLIES 3
amitchandak
Super User
Super User

@jmnigrelli , Assuming Total failures and Total count are measures

 

that this should work

% Failures = Divide([Total failures], [Total count]*200)*100

 

https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@amitchandak thank you for your response, this unfortunately did not work. 

 

This is basically what I am working with

ProcessMachineFailure Mode AFailure Mode B

Failure Mode C

Process 1Machine A011
Process 2Machine A

0

02
Process 1Machine A020
Process 2Machine B133
Process 1Machine B212
Process 2Machine B021

Process 1

Machine B100
Process 2Machine B

0

11
Process 1Machine B101

The way I have it set up now, is:

Column, Total Failures = ('Data Set[Failure Mode A]+[Failure Mode B]+[Failure Mode C])

Measure, Total Count = (Countrows('Data Set'))

Column % Total Failures = ([Total Failures]/(([Total Records])*45)*100)

And then I have a filter on the page only looking at process 1 (process 1 needs to be multiplied by 45)

The above gives me exactly what I need!

 

For process 2, the total records needs to be multiplied by 200, this is when I run into issues with the circular dependency. Does this help?

 

Thank you!!!

 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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