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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Sudhakar1000
Helper III
Helper III

Why new Column & Measure not working properly

Hi All,

i have a two table (OINV, Sales),
Oinv is Invoice table and sales is multi table joined include OINV also
So now Sales table i have to Subtract between two column, when i am trying new calculate column its 
 
INV_Basic CALCULATE(SUM('sales 1'[OINV.DocTotal])-SUM('sales 1'[OINV.VatSum]))
i am getting below error

also i am trying InvBasic Error.PNGto measure its working but table will reflecting complete values like line total

TableTable

Here INV Basic should be Total - Tax =165950 but my table coming more then 44923689.99.

Please help me how should resolve the issue

 

2 ACCEPTED SOLUTIONS

Thank you for solution V-jianpeng, i have used the below measure its worked 


Bal Amt1 =
SUMX(
VALUES('sales 1'[OINV.DocEntry]),
CALCULATE(
MAX('sales 1'[OINV.DocTotal])-MAX('sales 1'[OINV.VatSum])
)
)

View solution in original post

Anonymous
Not applicable

Hi, @Sudhakar1000 

Thank you a lot for sharing the solution. You can mark helpful replies and solutions you share as solutions so that others in the community can quickly find answers to the same problem. Thank you again for your cooperation.

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi, @Sudhakar1000 

According to the error shown in your image, your calculated column has a circular dependency, and your 'sales 1'[OINV. DocTotal], ‘sales 1’[OINV. VatSum] is also a calculated column? And the calculations depend on 'sales 1'[Cloumn 2], 'sales 1'[SOBasic in Lakh].
Circular dependencies are very common in Power BI, and the calculation result of column A depends on the calculation result of column B, and the calculation result of column B also depends on the calculation result of column A, which will cause Power BI to fail to determine the current calculation order, resulting in errors.
You can refer to the following community blog post that will help you understand circular dependencies and solve the current problem:

Circular Dependency between Calculated Columns in ... - Microsoft Fabric Community

vjianpengmsft_0-1718762529911.png

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thank you for solution V-jianpeng, i have used the below measure its worked 


Bal Amt1 =
SUMX(
VALUES('sales 1'[OINV.DocEntry]),
CALCULATE(
MAX('sales 1'[OINV.DocTotal])-MAX('sales 1'[OINV.VatSum])
)
)

Anonymous
Not applicable

Hi, @Sudhakar1000 

Thank you a lot for sharing the solution. You can mark helpful replies and solutions you share as solutions so that others in the community can quickly find answers to the same problem. Thank you again for your cooperation.

 

 

Best Regards

Jianpeng Li

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, @Sudhakar1000 

According to the error shown in your image, your calculated column has a circular dependency, and your 'sales 1'[OINV. DocTotal], ‘sales 1’[OINV. VatSum] is also a calculated column? And the calculations depend on 'sales 1'[Cloumn 2], 'sales 1'[SOBasic in Lakh].
Circular dependencies are very common in Power BI, and the calculation result of column A depends on the calculation result of column B, and the calculation result of column B also depends on the calculation result of column A, which will cause Power BI to fail to determine the current calculation order, resulting in errors.
You can refer to the following community blog post that will help you understand circular dependencies and solve the current problem:

Circular Dependency between Calculated Columns in ... - Microsoft Fabric Community

vjianpengmsft_0-1718762529911.png

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.