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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
PMnooBI
Frequent Visitor

Incorrect Measure values

bta.PNG

 

The measure results are incorrect for certain rows. I don't understand why. Please let me know how I can resolve this. Also the totals are wrong as well.

DAX command =>

Spent = SUMX('BTA Hours', 'BTA Hours'[Hours Billed]*RELATED('BTA Hourly Rate'[Hourly Rate ]))
2 ACCEPTED SOLUTIONS
Greg_Deckler
Community Champion
Community Champion

@PMnooBI Why not:

Spent = 
  VAR __Hours = SUM('BTA Hours'[Hours Billed])
  VAR __Rate = RELATED('BTA Hourly Rate'[Hourly Rate ])
  VAR __Result = __Hours * __Rate
RETURN
  __Result

At least that way you can troubleshoot and debug it.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

tamerj1
Community Champion
Community Champion

Hi @PMnooBI 

Apparently these rows are an aggregation of multiple rows of the 'BTA Hours' table. The 185 represents two rows, the 555 represents 3 rows and so. Either these rows are duplicates or you need to include more columns in the table visual to make sure only row level is represented in the visual without any chance of aggregation. 

View solution in original post

2 REPLIES 2
tamerj1
Community Champion
Community Champion

Hi @PMnooBI 

Apparently these rows are an aggregation of multiple rows of the 'BTA Hours' table. The 185 represents two rows, the 555 represents 3 rows and so. Either these rows are duplicates or you need to include more columns in the table visual to make sure only row level is represented in the visual without any chance of aggregation. 

Greg_Deckler
Community Champion
Community Champion

@PMnooBI Why not:

Spent = 
  VAR __Hours = SUM('BTA Hours'[Hours Billed])
  VAR __Rate = RELATED('BTA Hourly Rate'[Hourly Rate ])
  VAR __Result = __Hours * __Rate
RETURN
  __Result

At least that way you can troubleshoot and debug it.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.