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

Next 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

Reply
Anonymous
Not applicable

Incorrect Totals for Measures

Hi Folks,

 

I have read and applied almost all relevant post for Incorrect totals related to measure but still the issue persists. I have two tables having many to many relationship(due to which I cannot use related function) - A containing quantity information for items and B containing prices for those items. Tables are big so i don't want to merge them. I have resolved many to many relationship using bridge table to many to one relationship however, when I use calculated columns to calculate the item cost, it gives error of circular dependency.

To avoid that I tried to do the calculation using measures but it results in incorrect totals. Any pointers to resolve the issue is much appreciated!
Formulas that is have used for measures -

Part Cost = 

SUM('A'[Component quantity]) * SUM('B[Current price])
Cost =
var temp = SUMX(VALUES('Bridge Table_item list'[Index_Bom]),Part Cost)
var temp1 = SUMMARIZE(A,A[Index_Bom],"Cost",temp)
var result = IF(ISFILTERED(A[Index_Bom]),Part Cost,SUMX(temp1,[Cost]))
return result
1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can refer to the blog:Measure-Totals-The-Final-Word 

 

Best Regards,
Liang
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

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can refer to the blog:Measure-Totals-The-Final-Word 

 

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

JirkaZ
Solution Specialist
Solution Specialist

@Anonymous Can you show your model? 

Anonymous
Not applicable

 

Hi JirkaZ,

 

Below is the snippet of datamodel. I have highlighted the column that i want to multiply in the measure.

 

DataModel.PNG

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.