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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Unique fields and sum values

Hi,

I have a table where employee numbers are duplicated due to the report to field.

If someone is Acting in a position, the record duplicate. 
I need two things

One, count unique employees ( I have done this via merging some columns, happy for a better way)

The one I'm having trouble with is trying to count the actual FTE (Full Time Equivalent) which is a numeric value based on uniue employees.

 

Can anyone assist who I can do this?

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

If you are happy with a calculated table, you can create a new table with below DAX codes to get all FTE values without duplicates.

Sum Table = 
SUMMARIZE (
    'Test Data',
    'Test Data'[Employee Name],
    'Test Data'[Employee Number],
    'Test Data'[Position Number],
    "FTE value", MIN ( 'Test Data'[FTE] )
)

060401.jpg

 

Then use the data from above new table to calculate the actual FTEs and count unique employees with measures.

Number of Employees = DISTINCTCOUNT('Sum Table'[Employee Name])
Total FTE = SUM('Sum Table'[FTE value])

 

060402.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

8 REPLIES 8
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

If you are happy with a calculated table, you can create a new table with below DAX codes to get all FTE values without duplicates.

Sum Table = 
SUMMARIZE (
    'Test Data',
    'Test Data'[Employee Name],
    'Test Data'[Employee Number],
    'Test Data'[Position Number],
    "FTE value", MIN ( 'Test Data'[FTE] )
)

060401.jpg

 

Then use the data from above new table to calculate the actual FTEs and count unique employees with measures.

Number of Employees = DISTINCTCOUNT('Sum Table'[Employee Name])
Total FTE = SUM('Sum Table'[FTE value])

 

060402.jpg

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Nathaniel_C
Community Champion
Community Champion

Nathaniel_C_0-1622597128318.png

Hi @Anonymous , above is your table, sorry slightly different set. Go to Transform Data.

Nathaniel_C_1-1622597245126.png

Highlight the EID col, remove rows, remove duplicates.

 

Nathaniel_C_2-1622597384132.png

You will end up with this, and then you can sum the FTEs

Nathaniel_C_3-1622597499567.png

Sorry, this was a bit rushed, I am out the door, but will check back later.


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 





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

Proud to be a Super User!




Anonymous
Not applicable

Hi @Nathaniel_C 

This will remove some employee numbers that need to stay there.

Hi @Anonymous , maybe you could show expected outcome.





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

Proud to be a Super User!




Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous , could you mock up a table in Excel to show us? If someone is Acting in a position, the record duplicate, so for instance I don't understand your previous sentence.  

Is there no EID field that you could use DISTINCTCOUNT() on?

Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





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

Proud to be a Super User!




Anonymous
Not applicable

Also WAMI is unique for the individual
They can have multiple positions, which gives them a different Employee Number
The Issue is that when someone is temporarily relieving someone on leave and is a manager, the employee shows that he has two managers and thus duplicates in the table, but I need only to count it once.

Anonymous
Not applicable

Hi @Nathaniel_C 

Please see test data below

 

Test Data 

 

So the total FTE sum for John DO should be 

0.421052632 + 0.197368421 = 0.618421053

 

But at the moment, I'm getting 

0.421052632 + 0.197368421 + 0.197368421 = 0.815789474

Hi,

This measure works

FTE hours = min(Data[FTE])
Measure = sumx(VALUES(Data[Position Number]),[FTE hours])

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors