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
Stevo164
Regular Visitor

Creating a measure between two differents tables

Hi everyone,

I have two tables A and B.

A contains all the names and the contracts of all the employees. B contains all the possible types of contracts and the FTE referred to each contract.

The two tables are in realtion by the contracts column.

How can I obtain the total FTE of the entire company?

 

 

 

1 ACCEPTED SOLUTION

@Stevo164

 

 

In table A create this measure! It's works

 

FTE = SUMX(Table A; RELATED(Table B[FTE]))

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

@Stevo164,

You can create measure like this:

Total Company FTE = CALCULATE(SUM(B[FTE]), ALL(B))

This will display the total FTE ignoring any filters you have on your report page. If you want total FTE that filters by employee name, or contract type, use this: 

Total FTE = SUM(B[FTE])

thank you @Anonymous,

but that doesn't work for me. It will only shows the total FTE per type of contract with no relation with the number of employees.

@Stevo164

 

 

In table A create this measure! It's works

 

FTE = SUMX(Table A; RELATED(Table B[FTE]))

_picoloto43
Advocate II
Advocate II

Hey @Stevo164

 

I could not understand your question very well...

I think you want make group by types of contracts, right?

Hi @_picoloto43,

sorry for my bad english. Let give you and example:

 

TABLE A

EmployeeContract
Employee 1Contract 1
Employee 2Contract 2
Employee 3Contract 1
Employee 4Contract 4
Employee 5Contract 2
Employee 6Contract 2
Employee 7Contract 2
Employee 8Contract 1
Employee 9Contract 1
Employee 10Contract 1
Employee 11Contract 1
Employee 12Contract 4
Employee 13Contract 4
Employee 14Contract 4
Employee 15Contract 4
Employee 16Contract 5
Employee 17Contract 2
Employee 18Contract 3
Employee 19Contract 3

 

TABLE B

ContractFTE
Contract 10,9
Contract 20,8
Contract 30,7
Contract 40,6
Contract 50,5

 

The result should be 14,3

EmployeeContractFTE
Employee 1Contract 10,9
Employee 2Contract 20,8
Employee 3Contract 10,9
Employee 4Contract 40,6
Employee 5Contract 20,8
Employee 6Contract 20,8
Employee 7Contract 20,8
Employee 8Contract 10,9
Employee 9Contract 10,9
Employee 10Contract 10,9
Employee 11Contract 10,9
Employee 12Contract 40,6
Employee 13Contract 40,6
Employee 14Contract 40,6
Employee 15Contract 40,6
Employee 16Contract 50,5
Employee 17Contract 20,8
Employee 18Contract 30,7
Employee 19Contract 30,7

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.