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
Anonymous
Not applicable

A Circular Dependency

When building this formula, I've gotten this error:

1.PNG

 

But I'm just lost on why this is happening and how to fix it because this formula doesn't depend on NPS Bonus so I don't know why it's saying so:

1.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @v-piga-msft I've since then figured out the answer to my own problem. I'm still not sure how or why it works, but another user suggested using Switch statements instead of nested IF statements and it ended up working. Didn't change anything about the logic at all:

 

1.PNG 

 

1.PNG

 

It works now, I'm just confused on when and why to use SWITCH vs. IF. I'm using nested IF statements on a different dashboard with the exact same formulas and they work fine.

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

You could have a reference of this similar thread which has been solved.

 

If you still need help, please share some data sample and your formula, so that we can help further investigate on it?

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-piga-msft I've since then figured out the answer to my own problem. I'm still not sure how or why it works, but another user suggested using Switch statements instead of nested IF statements and it ended up working. Didn't change anything about the logic at all:

 

1.PNG 

 

1.PNG

 

It works now, I'm just confused on when and why to use SWITCH vs. IF. I'm using nested IF statements on a different dashboard with the exact same formulas and they work fine.

Kasunpathirana
Resolver I
Resolver I

I think use DAX Formatter and format your code and post it. It will be easier to troubleshoot.

 

http://www.daxformatter.com/

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.