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
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
Super User
Super User

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
Super User
Super User

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
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.