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
qwertzuiop
Advocate III
Advocate III

Sales per employee adjusted by contract (%)

Hello dear Power BI-Community

 

Let's asume these two tables:

 

Employee IDSales
1145
1265
1324
1478
1545
1635
1721
1869
1978
2012
... 

 

Employee IDEmployment contract (%)
1150
12100
1320
14100
1550
1640
1720
1850
1990
2020
... 

 

What i would like to calculate is the following column in red:

The column is calculated by assuming that all employees work full time (Sales / Contract% * 100)

 

Employee IDSalesSales adjusted
114590.0
126565.0
1324120.0
147878.0
154590.0
163587.5
1721105.0
1869138.0
197886.7
201260.0
...  

 

Thank you very much for your contribution.

 

Cheers

qwertzuiop 🐶

2 ACCEPTED SOLUTIONS
vanessafvg
Super User
Super User

would not 

 

measurename = calculate(divide(sum(sales), sum(employmentcontract)) * 100

 

would this not work?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

pradeept
Resolver I
Resolver I

Sales adjusted =
CALCULATE(
(SUM(EmpSales[Sales])/Sum(EmpContract[Employment contract (%)])*100
))

View solution in original post

2 REPLIES 2
pradeept
Resolver I
Resolver I

Sales adjusted =
CALCULATE(
(SUM(EmpSales[Sales])/Sum(EmpContract[Employment contract (%)])*100
))
vanessafvg
Super User
Super User

would not 

 

measurename = calculate(divide(sum(sales), sum(employmentcontract)) * 100

 

would this not work?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.