Forum Discussion
employee data compared to the team average.
- Anonymous2 years ago
Hi, MartaBak
May I ask if this is the expected output you are looking for? Based on your description, I have created many measures to achieve the effect you are looking for. Following picture shows the effect of the display.
Measures:
E-MAILS = COUNTROWS('Table') LP.EMPLY = DISTINCTCOUNT('Table'[Employee]) AvgEmail = 'Table'[E-MAILS]/'Table'[LP.EMPLY] EmailNumbyEmployee1 = CALCULATE ( COUNTROWS ( 'Table' ), FILTER ( 'Table', 'Table'[Employee] = SELECTEDVALUE ( 'Employee_1'[Employees] ) ) ) PercentEmail = [EmailNumbyEmployee1]/[AvgEmail]If this does not work, could you please share some sample data without sensitive information and expected output.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Best Regards,
Yang
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Sorry for not responding.
Below more data :
Table[Data]
| employee | DATE | id EMAIL |
| X | 20.02.2024 | 123456 |
| Y | 20.02.2024 | 123456 |
| Z | 20.02.2024 | 123456 |
| Z | 20.02.2024 | 123456 |
| Z | 20.02.2024 | 123456 |
| Z | 20.02.2024 | 123457 |
| Z | 20.02.2024 | 123458 |
| Z | 20.02.2024 | 123459 |
| X | 20.02.2024 | 123459 |
| X | 20.02.2024 | 123459 |
| Y | 20.02.2024 | 123459 |
| X | 20.02.2024 | 112345 |
| X | 20.02.2024 | 112549 |
| Y | 20.02.2024 | 123584 |
| Z | 20.02.2024 | 123695 |
What I need :
1. Sum of all e-mail per employee [lp]
2. percentage of employee participation compared to the average, which we assume as 100% [%]
3. employee name [EMPLOYEE]
example :
sum of e-mail = 15
amount of employess =3 (X,Y,Z)
ave. email = 15/3=5
employee participation X =5/5 = 100% , Y= 3/5 = 60%, Z=7/5= 140%
| EMPLOYEE | lp | % |
| X | 5 | 100% |
| Y | 3 | 60% |
| Z | 7 | 140% |
| AVEREGE | 5 | 100% |
I don't know why my previos answer befor 4h doesn't showed 😞
This thread has already been marked as solved. It would be better to open a new one.