The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello so imagine a table where i have 5 names : james, katie,jane,ari,jack.
total employees are 100 and like 20 james, 10 katie , 30 jane , 5 ari, 35 jack
i want to calculate the ratio of each employee name so like james is 20% cause 20/100 *100 is 20% .... ect
NB: NAMES ARE IN A TABLE SO I HAVE 1 column its name :
Name:
James
James
James
James
.....
i appreciate the help
Solved! Go to Solution.
Hi,
Use a measure:
Employee Ratio =
DIVIDE(
COUNTROWS( 'Table' ),
CALCULATE( COUNTROWS( 'Table' ), ALL( 'Table'[Name] ) )
)
Regards
Hi,
Use a measure:
Employee Ratio =
DIVIDE(
COUNTROWS( 'Table' ),
CALCULATE( COUNTROWS( 'Table' ), ALL( 'Table'[Name] ) )
)
Regards
Thank You very much
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
20 | |
15 | |
14 | |
10 | |
7 |