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 September 15. Request your voucher.
Team,
I am trying to do create a matrix table to plot Employee and Site in rows and total hrs and % of total hrs just for the specific employees in values.
When i plot this in power bi i get all rows 100% as seen in coloumn D. I would like to get the result as shown in coloumn E.
Solved! Go to Solution.
Measure:
_pct of employee hours =
DIVIDE(
[_total hours], //_total hours = sum(hours)
CALCULATE(
[_total hours],
ALL('Table'),
VALUES('Table'[Employee])
)
)
Measure:
_pct of employee hours =
DIVIDE(
[_total hours], //_total hours = sum(hours)
CALCULATE(
[_total hours],
ALL('Table'),
VALUES('Table'[Employee])
)
)
User | Count |
---|---|
65 | |
59 | |
55 | |
54 | |
32 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
45 |