Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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!
@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.
@amitchandak thank you for your response, this unfortunately did not work.
This is basically what I am working with
| Process | Machine | Failure Mode A | Failure Mode B | Failure Mode C |
| Process 1 | Machine A | 0 | 1 | 1 |
| Process 2 | Machine A | 0 | 0 | 2 |
| Process 1 | Machine A | 0 | 2 | 0 |
| Process 2 | Machine B | 1 | 3 | 3 |
| Process 1 | Machine B | 2 | 1 | 2 |
| Process 2 | Machine B | 0 | 2 | 1 |
Process 1 | Machine B | 1 | 0 | 0 |
| Process 2 | Machine B | 0 | 1 | 1 |
| Process 1 | Machine B | 1 | 0 | 1 |
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!!!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 21 | |
| 12 | |
| 9 | |
| 5 | |
| 5 |