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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jarthda
Regular Visitor

Table Totals are of Distinct Column Values

The measure 'hours paid' is created by a forumula getting distinct hours per work order and tech. This is becuase those hours are repeated in the underlying data set. Any idea why the default table Total is not 839.29?  I can see 40 is in two rows but appears only to be counted once.
Hours Paid  counts '40.00' only once in the totol.Hours Paid counts '40.00' only once in the totol.

 

 

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi  @jarthda ,

 

Check below measure :

HoursPaid=SUMX(DISTINCT('rpt Labor'[u_FULLNAME]),'rpt Labor'[dc_TotalHour])

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

guested
New Member

DISTINCT returns only unique variables, since 40 appears twice, it is only being returned once.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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