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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
nanty
Frequent Visitor

Calculate simple DAX division on a new column

Hello, basically I'm trying to create a new  column with a simple division, but I'm stuck on this. Does the DIVIDE function only work with measures?

 

This is the DAX expression that I'm using: Division Column = divide(sum([Column A]),sum([Column B]),0)

 

I need the result to be shown on a column so I can later use  it on a PERCENTILE.EXC expression, but I keep getting this error message: 

 

I get an error message saying: "A circular dependency was detected: [Column A], [Division Column], [Column B]"

 

Any help would be highly appreciated!

 

Thank you in advance,

 

 

5 REPLIES 5
RMDNA
Solution Sage
Solution Sage

@nanty,

 

The error "A circular dependency was detected: [Column A], [Division Column], [Column B]" indicates an error with your table relationships, not necessarily an issue with your DAX syntax.

 

Reevaluate your table relationships and find the circular depedency, and that should solve this issue.

nanty
Frequent Visitor

Hello @RMDNA!

 

Thank you for your reply. I changed the DAX formula I was using for the other columns and that seemed to solve the error message (those  two columns count the number of registries there are in several columns, count them as 1 and then sum them up depending on another column value). Nonetheless, when I calculate the division (both manually with / symbol and with the DIVIDE function), I get a very different result than it is supposed to. For example,dividing the first line under "Registros x agente" between the "Reg reiterados - IM" value would have to result in 3.3 and it is giving me 14 and 19 on each kind of function I am using:

1.JPG2.JPG

 

 

Hi,

 

Wrap the numerator and the denominator in the SUM() function.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
nanty
Frequent Visitor

Hello, basically I'm trying to create a new  column with a simple division, but I'm stuck on this. Does the DIVIDE function only work with measures?

 

This is the DAX expression that I'm using: Division Column = divide(sum([Column A]),sum([Column B]),0)

 

I need the result to be shown on a column so I can later use  it on a PERCENTILE.EXC expression, but I keep getting this error message: 

 

I get an error message saying: "A circular dependency was detected: [Column A], [Division Column], [Column B]"

 

Any help would be highly appreciated!

 

Thank you in advance,

@nanty,

 

See my answer in your duplicate thread.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors