We're giving away 30 tickets for FREE! Share your story, your vision, or your hustle and tell us why YOU deserve a ticket.
Apply nowWin a FREE 3 Day Ticket to FabCon Vienna. Apply now
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 |
---|---|
60 | |
56 | |
47 | |
39 | |
34 |
User | Count |
---|---|
114 | |
79 | |
65 | |
48 | |
47 |